How can I perform vector ("vector" | "vectorSimpleHybrid" | "vectorSemanticHybrid") search of documents using the OpenAI chat completions?

Eric Macia 0 Reputation points
2024-04-10T09:57:53.77+00:00

I am working on a system to conversationally search documents.

The user inputs a query and they get a response with a set of citations from where the information was extracted from. This information is searched from an Azure container that has all the documents that the user can search from. These are indexed, chunked and vectorized using the Azure Search Service, and then queried using the chat completions from @azure/openai SDK for JS (currently on version 1.0.0-beta.11).
Currently, I can only run "simple" or "semantic" queries that will return correctly. However whenever I try to run queries of types "vector", "vectorSimpleHybrid" or "vectorSemanticHybrid", the getChatCompletions(model, messages, options) function fails with the following error message:

Error Message

This is the configuration of the options for the chat completion, queryType :

imagen

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
992 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,040 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.