-
Notifications
You must be signed in to change notification settings - Fork 15.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
community: Add the additonnal kward 'context' for openai #28351
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
hi :) @baskaryan @ccurme |
Hi @lucasiscovici, can you explain the motivation for this? |
@ccurme In recent versions of the Azure OpenAI Chat With Your Data, a significant enhancement has been introduced with the addition of the "context" property into the response chat message. The "context" property is added to the assistant's messages to provide extra information about the steps taken by Azure OpenAI while processing a request. This includes retrieved documents, citations, and other relevant metadata. Chat messageThe response assistant message schema inherits from the chat completions assistant chat message, and is extended with the property context.
Context
Citation
Retrieved documents
|
f0efa0d
to
987109c
Compare
Hi @ccurme and @baskaryan, Just following up to see if the motivation I shared addresses your questions. Let me know if there’s anything else I can clarify or adjust! Thanks for your time! 😊 |
Add the additonnal kward 'context' for openai
987109c
to
0c047bb
Compare
Hi @lucasiscovici, Thanks for following up. Can you elaborate on how you are accessing the Azure chat-with-your-data service via LangChain? Asking in case AzureChatOpenAI is involved, since the community version is deprecated in favor of the version in langchain-openai. |
Hi @ccurme, i create the PR for langchain-openai (partners) |
Add the additonnal kward 'context' for openai into
convert_dict_to_message
andconvert_message_to_dict
functions.