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
Remove fallback to all registered vector stores when tool RAG is unconfigured
Previously, when neither rag.tool nor rag.inline were configured,
prepare_tools would fetch and register all vector stores from
llama-stack as a backward-compatibility fallback. This implicit
behavior is removed — tool RAG now requires explicit configuration
via rag.tool. Updated docs, config model, example YAML, and tests
to reflect the new behavior.
| inline | array | RAG IDs whose sources are injected as context before the LLM call. Use 'okp' to enable OKP inline RAG. Empty by default (no inline RAG). |
620
-
| tool | array | RAG IDs made available to the LLM as a file_search tool. Use 'okp' to include the OKP vector store. When omitted, all registered BYOK vector stores are used (backward compatibility).|
616
+
| tool | array | RAG IDs made available to the LLM as a file_search tool. Use 'okp' to include the OKP vector store. When omitted, tool RAG is disabled. |
Copy file name to clipboardExpand all lines: docs/models/responses_succ.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1840,18 +1840,14 @@ Controls which RAG sources are used for inline and tool-based retrieval.
1840
1840
Each strategy lists RAG IDs to include. The special ID ``"okp"`` defined in constants,
1841
1841
activates the OKP provider; all other IDs refer to entries in ``byok_rag``.
1842
1842
1843
-
Backward compatibility:
1844
-
- ``inline`` defaults to ``[]`` (no inline RAG).
1845
-
- ``tool`` defaults to ``[]`` (no tool RAG).
1846
-
1847
-
If no RAG strategy is defined (inline and tool are empty),
1848
-
the RAG tool will register all stores available to llama-stack.
1843
+
Both ``inline`` and ``tool`` default to ``[]`` (disabled).
1844
+
Each must be explicitly configured to activate its respective RAG strategy.
1849
1845
1850
1846
1851
1847
| Field | Type | Description |
1852
1848
|-------|------|-------------|
1853
1849
| inline | array | RAG IDs whose sources are injected as context before the LLM call. Use 'okp' to enable OKP inline RAG. Empty by default (no inline RAG). |
1854
-
| tool | array | RAG IDs made available to the LLM as a file_search tool. Use 'okp' to include the OKP vector store. When omitted, all registered BYOK vector stores are used (backward compatibility). |
1850
+
| tool | array | RAG IDs made available to the LLM as a file_search tool. Use 'okp' to include the OKP vector store. When omitted, tool RAG is disabled. |
Copy file name to clipboardExpand all lines: docs/openapi.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18084,13 +18084,13 @@
18084
18084
},
18085
18085
"type": "array",
18086
18086
"title": "Tool RAG IDs",
18087
-
"description": "RAG IDs made available to the LLM as a file_search tool. Use 'okp' to include the OKP vector store. When omitted, all registered BYOK vector stores are used (backward compatibility)."
18087
+
"description": "RAG IDs made available to the LLM as a file_search tool. Use 'okp' to include the OKP vector store. When omitted, tool RAG is disabled."
18088
18088
}
18089
18089
},
18090
18090
"additionalProperties": false,
18091
18091
"type": "object",
18092
18092
"title": "RagConfiguration",
18093
-
"description": "RAG strategy configuration.\n\nControls which RAG sources are used for inline and tool-based retrieval.\n\nEach strategy lists RAG IDs to include. The special ID ``\"okp\"`` defined in constants,\nactivates the OKP provider; all other IDs refer to entries in ``byok_rag``.\n\nBackward compatibility:\n - ``inline`` defaults to ``[]`` (no inline RAG).\n - ``tool`` defaults to ``[]`` (no tool RAG).\n\nIf no RAG strategy is defined (inline and tool are empty),\nthe RAG tool will register all stores available to llama-stack."
18093
+
"description": "RAG strategy configuration.\n\nControls which RAG sources are used for inline and tool-based retrieval.\n\nEach strategy lists RAG IDs to include. The special ID ``\"okp\"`` defined in constants,\nactivates the OKP provider; all other IDs refer to entries in ``byok_rag``.\n\nBoth ``inline`` and ``tool`` default to ``[]`` (disabled).\nEach must be explicitly configured to activate its respective RAG strategy."
Copy file name to clipboardExpand all lines: docs/openapi.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8155,18 +8155,14 @@ Controls which RAG sources are used for inline and tool-based retrieval.
8155
8155
Each strategy lists RAG IDs to include. The special ID ``"okp"`` defined in constants,
8156
8156
activates the OKP provider; all other IDs refer to entries in ``byok_rag``.
8157
8157
8158
-
Backward compatibility:
8159
-
- ``inline`` defaults to ``[]`` (no inline RAG).
8160
-
- ``tool`` defaults to ``[]`` (no tool RAG).
8161
-
8162
-
If no RAG strategy is defined (inline and tool are empty),
8163
-
the RAG tool will register all stores available to llama-stack.
8158
+
Both ``inline`` and ``tool`` default to ``[]`` (disabled).
8159
+
Each must be explicitly configured to activate its respective RAG strategy.
8164
8160
8165
8161
8166
8162
| Field | Type | Description |
8167
8163
|-------|------|-------------|
8168
8164
| inline | array | RAG IDs whose sources are injected as context before the LLM call. Use 'okp' to enable OKP inline RAG. Empty by default (no inline RAG). |
8169
-
| tool | array | RAG IDs made available to the LLM as a file_search tool. Use 'okp' to include the OKP vector store. When omitted, all registered BYOK vector stores are used (backward compatibility). |
8165
+
| tool | array | RAG IDs made available to the LLM as a file_search tool. Use 'okp' to include the OKP vector store. When omitted, tool RAG is disabled. |
0 commit comments