Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure AI Search - unauthorized errors #409

Open
Markusdasi opened this issue Jul 30, 2024 · 1 comment
Open

Azure AI Search - unauthorized errors #409

Markusdasi opened this issue Jul 30, 2024 · 1 comment

Comments

@Markusdasi
Copy link

I have managed to create an extension that uses ai search API, but i can't get the built in Azure AI search to work.

When i fill out all the info, with the domain for the api, searchindex, searchname, api key etc, that i know works in the previous extension, it returns error - [unauthorized].

So direct data is working, but i try to use the api/document endpoint, it fails.

It would be fine with the direct one, but citation is missing and i guess that is part of the document endpoint.

It might be that my index is manually created and i might have some other fields/vectors?

@bwitzig-zen
Copy link

@Markusdasi

Take a look at the index you created, it needs to match the code in the "citation service.ts" file (You will see metadata, pagecontent and chatthreadid listed with the fields to the right where it is searching)

I recommend using JSON to create the index in azure search and create a match for the default index to preserve compatibility. (This way you can copy and paste fields)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants