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
feat: Add extra search index fields to Knowledge Agent response (#2696)
* Update coverage report generation command
- Fix command to generate HTML report for coverage using `diff-cover` 🛠️
* Add support for agentic reference hydration
- Introduce ENABLE_AGENTIC_REF_HYDRATION environment variable to control reference hydration behaviour 🌱
- Update Approach classes to accept hydrate_references parameter for managing reference hydration logic 🔧
- Modify document retrieval logic to hydrate references when enabled, improving data completeness 📄
* Enhance agentic retrieval with optional field hydration
- ✨ Add support for enabling extra field hydration in agentic retrieval
- 🔧 Update infrastructure to include new parameter for hydration
- 📝 Modify documentation to reflect changes in usage instructions
* Add tests for hydration support for agentic retrieval
- 🎉 Introduce ENABLE_AGENTIC_REF_HYDRATION environment variable for configuration
- 🧪 Implement mock search results for hydration testing in agentic retrieval
- 🔍 Create tests for agentic retrieval with and without hydration enabled
- 📜 Ensure hydrated results include additional fields from search results
* Ran ruff and black on new tests
* Ran black on changed files
* Update test snapshots
* Working on tests
* Refactor mock retrieval functions for improved flexibility
- 🎨 Introduce `create_mock_retrieve` to parameterise mock retrieval responses.
- 🔄 Remove redundant mock search functions to streamline code.
- 🧪 Update tests to use the new mock retrieval function for various scenarios.
- 🧹 Clean up unused mock functions to enhance maintainability.
* Rename env var to match API parameter
* Revert CONTRIBUTING.md TOC change as unneeded
---------
Co-authored-by: Taylor <[email protected]>
Co-authored-by: Pamela Fox <[email protected]>
Copy file name to clipboardExpand all lines: docs/agentic_retrieval.md
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,21 +34,33 @@ See the agentic retrieval documentation.
34
34
azd env set AZURE_OPENAI_SEARCHAGENT_MODEL_VERSION 2025-04-14
35
35
```
36
36
37
-
3.**Update the infrastructure and application:**
37
+
3.**(Optional) Enable extra field hydration**
38
+
39
+
By default, agentic retrieval only returns fields included in the semantic configuration.
40
+
41
+
You can enable this optional feature below, to include all fields from the search index in the result.
42
+
⚠️ This feature is currently only compatible with indexes set up with integrated vectorization,
43
+
or indexes that otherwise have an "id" field marked as filterable.
44
+
45
+
```shell
46
+
azd env set ENABLE_AGENTIC_RETRIEVAL_SOURCE_DATA true
47
+
```
48
+
49
+
4.**Update the infrastructure and application:**
38
50
39
51
Execute `azd up` to provision the infrastructure changes (only the new model, if you ran `up` previously) and deploy the application code with the updated environment variables.
40
52
41
-
4.**Try out the feature:**
53
+
5.**Try out the feature:**
42
54
43
55
Open the web app and start a new chat. Agentic retrieval will be used to find all sources.
44
56
45
-
5.**Experiment with max subqueries:**
57
+
6.**Experiment with max subqueries:**
46
58
47
59
Select the developer options in the web app and change max subqueries to any value between 1 and 20. This controls the maximum amount of subqueries that can be created in the query plan.
Agentic retrieval use additional billed tokens behind the scenes for the planning process.
54
66
To see the token usage, select the lightbulb icon on a chat answer. This will open the "Thought process" tab, which shows the amount of tokens used by and the queries produced by the planning process
0 commit comments