Replies: 2 comments
-
It is in app.py. The code below determines if you have data configured. Then sends a bit of extra json to the chat completion to tell it what data to use. In this case, it would be what index to use to search. The intent is done by AOAI and uses the data to answer the question.
|
Beta Was this translation helpful? Give feedback.
-
Yes, thank you. I was suspecting that everything is sent in one request to Azure Open AI API.
If this is the case do we have any control on how the datasource is queried and which content retrieved from the datasource is considered relevant to the question? I am showing an example of a chat about instructions for using shredder in the office. You can notice that for the second question it correctly gets the context from previous messages and sends relevant questions to the Datasource. Q1: "how to use a shredder" Message1:{"content": "how to use a shredder","role": "user"} A1: "The document provides instructions for using a shredder. Here are the key points:..." Q2: "what to do if it is broken" Message4:{'role': 'user', 'content': 'what to do if it is broken'} |
Beta Was this translation helpful? Give feedback.
-
Hello, I have successfuly connected tha app to existing Azure resources (including Azure AI Search) and it is working fine.
Now, when debugging I could not find where the request to Azure AI Search is made and also how the app gets "intent" for the user question.
Could you please show me the method in which http request to Azure AI Search service is sent and also explain how the app gets the user intent?
Beta Was this translation helpful? Give feedback.
All reactions