Azure-Samples / azure-search-openai-demo

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure AI Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
https://azure.microsoft.com/products/search
MIT License
5.57k stars 3.74k forks source link

Upgrade to latest version of AI Chat Protocol #1682

Closed pamelafox closed 2 weeks ago

pamelafox commented 3 weeks ago

Purpose

The AI Chat Protocol has now been further codified in an SDK (https://github.com/microsoft/ai-chat-protocol). We are not yet porting to the SDK due to our need for authentication and some questions around the token provider option in the SDK. However, we'd still like for our HTTP API to comply to the Chat Protocol. There are two differences from our current API design:

Does this introduce a breaking change?

When developers merge from main and run the server, azd up, or azd deploy, will this produce an error? If you're not sure, try it out on an old environment.

[ ] Yes
[X] No

Does this require changes to learn.microsoft.com docs?

This repository is referenced by this tutorial which includes deployment, settings and usage instructions. If text or screenshot need to change in the tutorial, check the box below and notify the tutorial author. A Microsoft employee can do this for you if you're an external contributor.

[ ] Yes
[X] No

Type of change

[ ] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

Code quality checklist

See CONTRIBUTING.md for more details.

pamelafox commented 3 weeks ago

Note: this would probably require changes to ai-rag-chat-evaluator

pamelafox commented 2 weeks ago

Related change to ai-rag-chat-evaluator: https://github.com/Azure-Samples/ai-rag-chat-evaluator/pull/92