Skip to content

Commit 0c21ae3

Browse files
committed
Improve the doc
1 parent 4bac20d commit 0c21ae3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/customization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ The backend is built using [Quart](https://quart.palletsprojects.com/), a Python
3030

3131
### Chat approach
3232

33-
Typically, the primary backend code you'll want to customize is the `app/backend/approaches` folder, which contains the classes powering the Chat tab. Each class uses a RAG (Retrieval Augmented Generation) approach, which includes system messages that should be changed to match your data
33+
Typically, the primary backend code you'll want to customize is the `app/backend/approaches` folder, which contains the code and prompts powering the RAG flow.
3434

35-
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).
35+
The RAG flow is implemented in [chatreadretrieveread.py](https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/app/backend/approaches/chatreadretrieveread.py).
3636

3737
1. **Query rewriting**: It calls the OpenAI ChatCompletion API to turn the user question into a good search query, using the prompt and tools from [chat_query_rewrite.prompty](https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/app/backend/approaches/prompts/chat_query_rewrite.prompty).
3838
2. **Search**: It queries Azure AI Search for search results for that query (optionally using the vector embeddings for that query).

0 commit comments

Comments
 (0)