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: docs/customization.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,9 @@ Typically, the primary backend code you'll want to customize is the `app/backend
37
37
38
38
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).
39
39
40
-
1. It uses the OpenAI ChatCompletion API to turn the user question into a good search query.
40
+
1. It calls the OpenAI ChatCompletion API (with a temperature of 0) to turn the user question into a good search query.
41
41
2. It queries Azure AI Search for search results for that query (optionally using the vector embeddings for that query).
42
-
3. It then combines the search results and original user question, and asks OpenAI ChatCompletion 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).
42
+
3. It then combines the search results and original user question, and calls the OpenAI ChatCompletion API (with a temperature of 0.7) 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).
43
43
44
44
The `system_message_chat_conversation` variable is currently tailored to the sample data since it starts with "Assistant helps the company employees with their healthcare plan questions, and questions about the employee handbook." Change that to match your data.
45
45
@@ -56,7 +56,7 @@ If you followed the instructions in [docs/gpt4v.md](docs/gpt4v.md) to enable the
56
56
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).
57
57
58
58
1. It queries Azure AI Search for search results for the user question (optionally using the vector embeddings for that question).
59
-
2. It then combines the search results and user question, and asks OpenAI ChatCompletion API to answer the question based on the sources.
59
+
2. It then combines the search results and user question, and calls the OpenAI ChatCompletion API (with a temperature of 0.3) to answer the question based on the sources.
60
60
61
61
The `system_chat_template` variable is currently tailored to the sample data since it starts with "You are an intelligent assistant helping Contoso Inc employees with their healthcare plan questions and employee handbook questions." Change that to match your data.
0 commit comments