How can I perform vector ("vector" | "vectorSimpleHybrid" | "vectorSemanticHybrid") search of documents using the OpenAI chat completions?
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:
This is the configuration of the options for the chat completion, queryType :