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
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@ You can also try changing the ChatCompletion parameters, like temperature, to se
122
122
123
123
### ImprovingAzureAISearchresults
124
124
125
-
IftheproblemiswithAzureAISearch (step2above), thefirststepistocheckwhatsearchparametersyou're using. Generally, the best results are found with hybrid search (text + vectors) plus the additional semantic re-ranking step, and that'swhatwe've enabled by default. There may be some domains where that combination isn'toptimal, however.
125
+
IftheproblemiswithAzureAISearch (step2above), thefirststepistocheckwhatsearchparametersyou're using. Generally, the best results are found with hybrid search (text + vectors) plus the additional semantic re-ranking step, and that'swhatwe've enabled by default. There may be some domains where that combination isn'toptimal, however.Checkoutthisblogpostwhich [evaluatesAIsearchstrategies](https://techcommunity.microsoft.com/t5/ai-azure-ai-services-blog/azure-ai-search-outperforming-vector-search-with-hybrid/ba-p/3929167) for a better understanding of the differences.
126
126
127
127
#### Configuringparametersintheapp
128
128
@@ -162,6 +162,15 @@ You can also use the `highlight` parameter to see what text is being matched in
162
162
163
163
Thesearchexplorerworkswellfortestingtext, butishardertousewithvectors, sinceyou'd also need to compute the vector embedding and send it in. It is probably easier to use the app frontend for testing vectors/hybrid search.
-Addingadditionalmetadatatothe"content"field, likethedocumenttitle, sothatitcanbematchedinthesearchresults. Modify [searchmanager.py](https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/app/backend/prepdocslib/searchmanager.py) to include more text in the `content` field.
170
+
-Makingadditionalfieldssearchablebythefulltextsearchstep. Forexample, the"sourcepage"fieldisnotcurrentlysearchable, butyoucouldmakethatintoa`SearchableField`with`searchable=True`in [searchmanager.py](https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/app/backend/prepdocslib/searchmanager.py). A change like that requires [re-building the index](https://learn.microsoft.com/azure/search/search-howto-reindex#change-an-index-schema).
171
+
-Usingfunction calling to search by particular fields, like searching by the filename. See this blog post on [function calling for structured retrieval](https://blog.pamelafox.org/2024/03/rag-techniques-using-function-calling.html).
Onceyou've made changes to the prompts or settings, you'llwanttorigorouslyevaluatetheresultstoseeifthey've improved. You can use tools in [the AI RAG Chat evaluator](https://github.com/Azure-Samples/ai-rag-chat-evaluator) repository to run evaluations, review results, and compare answers across runs.
0 commit comments