Open sjwaight opened 9 months ago
This sounds really cool. Let's try it! Easy enough to directly invoke HTTP calls from Quarkus.
I think I probably won't get to calling this in the Quarkus demo. Maybe let's discuss it in the beginning but not show calls to it in the demo.
It doesn't look like the Java SDK has the
AzureChatExtensionsOptions
type similar to the C# SDK which wraps calling data sources imported using the "add your data" option for Azure Open AI. The below script, however, shows how you can use CURL to invoke the Vector Search (via Azure AI Search) API as part of a call to the Azure Open AI Service.There is also this Spring documentation on using BYOD that may be a handy reference.
The
messages
array is from a live chat session I had, but for the Java implementation you'd only initially send the System prompt.For the below sample I have set the Vector DB to ingest HTML content from The Mandalorian Season One page (and related ones) on Fandom.