Open michbalazs opened 7 months ago
I should say it works fine in openai studio
Hm, I think the next thing I would try is:
Using the manageacls script to double check that you do have access to the document you expect to see, via command like: ./scripts/manageacl.ps1 --document [name-of-pdf.pdf] --acl-type [oids or groups]--acl-action view
Querying the search index in the Azure Portal index viewer for the relevant document (sourcefile eq "filename") and checking the oids/groups
Querying the search index in the Azure Portal with the same query used by the UI.
Perhaps the IDs aren't quite set correctly?
cc @mattgotteiner
Thanks. It seems okish
I have access
Querying the search index for the file { "@odata.context": "https://gptkb-xxxxx.search.windows.net/indexes('gptkbindex')/$metadata#docs(*)", "@search.nextPageParameters": { "search": "had course guide.pdf", "select": "sourcefile,oids,groups", "filter": "sourcefile eq 'had course guide.pdf'", "skip": 50 }, "value": [ { "@search.score": 8.523854, "sourcefile": "had course guide.pdf", "oids": [], "groups": [] }, { "@search.score": 7.436149, "sourcefile": "had course guide.pdf", "oids": [], "groups": [] }, (Multiple similar rows with lower scores ?)
Query was What courses does Hadlow college offer in animal management { "search": "What courses does Hadlow college offer in animal management", "queryType": "semantic", "semanticConfiguration": "default", "captions": "extractive", "answers": "extractive|count-3", "queryLanguage": "en-US" }
{ "@odata.context": "https://gptkb-hdtqjlhd3jjw4.search.windows.net/indexes('gptkbindex')/$metadata#docs(*)", "@search.answers": [ { "key": "file-had_course_guide_pdf-68616420636F757273652067756964652E706466-page-42", "text": "full-time courses offer at hadlow campus course titlelevelfdsc in applied animal behavioural science & welfare4 & 5fdsc in zoo husbandry & animal management4 & 5fdsc in equine training and management4 & 5fdsc in horticulture - commercial4 & 5bsc top up in equine training and management6bsc top up in applied animal …", "highlights": "full-time courses offer at hadlow campus course titlelevelfdsc in applied animal behavioural science & welfare4 & 5fdsc in zoo husbandry & animal management4 & 5fdsc in equine training and management4 & 5fdsc in horticulture - commercial4 & 5bsc top up in equine training and management6bsc top up in applied animal …", "score": 0.83056640625 }, { "key": "file-had_course_guide_pdf-68616420636F757273652067756964652E706466-page-63", "text": "The College courses include: Full-time Further Education College delivered course - Levels 1-3 in Agriculture, Agricultural Engineering, Animal Management, Equestrian Studies, Fisheries Management, Floristry and Horticulture.", "highlights": "The College courses include: Full-time Further Education College delivered course - Levels 1-3 in Agriculture, Agricultural Engineering, Animal Management, Equestrian Studies, Fisheries Management, Floristry and Horticulture.", "score": 0.81494140625 },
"oids": [], "groups": []- both are empty -that is the same bug i experienced after uploading files with ./scripts/manageacl.sh see https://github.com/Azure-Samples/azure-search-openai-demo/issues/2064
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
Expected/desired behavior
OS and Version?
azd version?
Mention any other details that might be useful