Hybrid search with experiemental features using Azure Open AI Embedding API as an embedder #745
Replies: 3 comments 5 replies
-
Hello! Looking at Azure's reference documentation, it looks like Authentication by API key uses the This is unfortunate. If you have access to "Microsoft Entra ID authentication" you can retry with one as it looks like this method uses the By the way, looking at your embedder config, it looks like some parameters are incorrect. You can't see that now that you have the authentication issue, but they will be an issue after the auth issue is solved.
|
Beta Was this translation helpful? Give feedback.
-
Hello @dureuill, Once again thanks for your response :)
When do you think this can be available? It would be great to have this as soon as possible because the user provided embedding is a solution but harder to implement and a little bit less elegant :). I have a doubt however: even if you add custom (authorization) header support to the API, don't we always have to add the vector into the indexed documents?
Earlier you said that a "q" parameter and a vector would be necessary when using user provided embedding. But here you say that a "q" parameter is enough. Can you clarify? Thanks |
Beta Was this translation helpful? Give feedback.
-
Hello @dureuill , We are thinking on another approach that is doing a custom REST API that serves as an embedder.
One of our concerns is that we will need to rebuild our existing search index and if we use a user provided approach, for each document, we will need to call the Azure Open AI embedding API to generate the embedding vector that will be set in the _vectors field of the index. If on the other hand, use a REST API approach using a custom REST API that calls Azure Open AI Embedding API, we don't need to call the Azure Open AI Embedding API directly and indexing times are much faster. Can you confirm what I said above? About the format of the response required by Meilisearch when using a custom REST API as an embedder. Can you give us an example of a response that we would have to supply so that it can be processed correctly by Meilisearch? About the request itself, how does Meilisearch do a request to the custom REST API as an embedder? How do I know how data is passed to the embedder? Is it a GET or a POST (I assume POST)? Can you give us an example of a request in the following situations?
Another thing: in https://www.meilisearch.com/docs/learn/experimental/vector_search#generate-auto-embeddings, REST Option, it is referred the following: "model is a mandatory field indicating a compatible model. documentTemplate is an optional field. Use it to customize the data you send to the embedder. It is highly recommended you configure a custom template for your documents." What are we supposed to set in the model field? documentTemplate although optional, is recommended. Are there any examples of document templates in the documentation or that you can supply? Thanks |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to configure a Meilisearch instance that we are hosting in Azure (PaaS) to use the Azure Open AI Embeddings API to generate the embeddings in Meilisearch.
We followed the documentation at https://www.meilisearch.com/docs/learn/experimental/vector_search#generate-auto-embeddings and we are trying to use the REST option with the Azure Open AI embeddings API.
We are using the following request to configure Azure Open AI Embedding API as Meilisearch embedder.
But we are getting the following error:
The Azure Open AI api key we are using is correct and if we make a request to Azure Open AI API directly with the same api key, we get a valid vector back.
What are we doing wrong?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions