You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -228,6 +228,23 @@ The primary differences:
228
228
In `infra/main.bicep`, change `chatGptModelName` to 'gpt-4' instead of 'gpt-35-turbo'. You may also need to adjust the capacity above that line depending on how much TPM your account is allowed.
229
229
</details>
230
230
231
+
<details>
232
+
<summary>What is the difference between the Chat and Ask tabs?</summary>
233
+
234
+
The chat tab uses the approach programmed in [chatreadretrieveread.py](https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/app/backend/approaches/chatreadretrieveread.py).
235
+
236
+
- It uses the ChatGPT API to turn the user question into a good search query.
237
+
- It queries Azure Cognitive Search for search results for that query (optionally using the vector embeddings for that query).
238
+
- It then combines the search results and original user question, and asks ChatGPT API to answer the question based on the sources. It includes the last 4K of message history as well (or however many tokens are allowed by the deployed model).
239
+
240
+
The ask tab uses the approach programmed in [retrievethenread.py](https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/app/backend/approaches/retrievethenread.py).
241
+
242
+
- It queries Azure Cognitive Search for search results for the user question (optionally using the vector embeddings for that question).
243
+
- It then combines the search results and user question, and asks ChatGPT API to answer the question based on the sources.
244
+
245
+
There are also two other /ask approaches with a slightly different approach, but they aren't currently working due to [langchain compatibility issues](https://github.com/Azure-Samples/azure-search-openai-demo/issues/541).
0 commit comments