azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

[OpenAI] Support for vector search for Azure Cognitive Search

Open mkemmerz opened this issue 1 year ago • 3 comments

Describe the solution you'd like The Java SDK for OpenAI should offer a configuration setting to enable vector search on top of the currently supported keyword search.

Probably the AzureCognitiveSearchChatExtensionConfiguration should support this.

The vector / hybrid search has examples here: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/search/azure-search-documents/src/samples/java/com/azure/search/documents/VectorSearchExample.java

Those are quite complex to use though. An easy integration into the OpenAI would be really great.

Describe alternatives you've considered Calling the OpenAI API directly, without the usage of the SDK.

Additional context The search type ("Suchtyp") can be configured on Azure's Cognitive Search field as "Hybrid (Vector + Keyword)":

image

mkemmerz avatar Nov 07 '23 13:11 mkemmerz

@mssfang PTAL

joshfree avatar Dec 07 '23 17:12 joshfree

@mkemmerz You can find a sample in our repo that shows how to use Azure Search extension in the OpenAI SDK.

https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/openai/azure-ai-openai/src/samples/java/com/azure/ai/openai/ChatCompletionsWithYourData.java#L59

mssfang avatar Feb 29 '24 05:02 mssfang

Hi @mkemmerz. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

github-actions[bot] avatar Feb 29 '24 05:02 github-actions[bot]

Hi @mkemmerz, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

github-actions[bot] avatar Mar 07 '24 09:03 github-actions[bot]

Thanks for the support!

mkemmerz avatar Mar 07 '24 15:03 mkemmerz