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/en/Components/Config.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
@@ -166,3 +166,20 @@ In addition to yaml configuration, MS-Agent also supports several additional com
166
166
```
167
167
168
168
> Any configuration in agent.yaml can be passed in with new values via command line, and also supports reading from environment variables with the same name (case insensitive), for example `--llm.modelscope_api_key xxx-xxx`.
169
+
170
+
- knowledge_search_paths: Knowledge search paths, comma-separated multiple paths. When provided, automatically enables SirchmunkSearch for knowledge retrieval, with LLM configuration automatically inherited from the `llm` module.
171
+
172
+
### Quick Start for Knowledge Search
173
+
174
+
Use the `--knowledge_search_paths` parameter to quickly enable knowledge search based on local documents:
175
+
176
+
```bash
177
+
# Using default agent.yaml configuration, automatically reuses LLM settings
178
+
ms-agent run --query "How to implement user authentication?" --knowledge_search_paths "./src,./docs"
179
+
180
+
# Specify configuration file
181
+
ms-agent run --config /path/to/agent.yaml --query "your question" --knowledge_search_paths "/path/to/docs"
182
+
```
183
+
184
+
LLM-related parameters (api_key, base_url, model) are automatically inherited from the `llm` module in the configuration file, no need to configure them repeatedly.
185
+
If you need to use independent LLM configuration in the `knowledge_search` module, you can explicitly configure `knowledge_search.llm_api_key` and other parameters in the yaml.
0 commit comments