RAG retrieval runs entirely through the local search_knowledge_base tool. If the loaded model doesn't support tool calling (e.g. a safetensors model whose template advertises tools in an unparsable emission format, so supports_tools is suppressed), enabling RAG does nothing — the model never calls the tool. The pill stayed lit and clickable, which was misleading. Gate the RAG pill on supportsTools (in addition to modelLoaded), the same condition web/code use when there's no provider builtin. Applied to both composer surfaces (shared-composer and the in-thread RagToggle), with a 'RAG needs a model that supports tool calling' tooltip on the disabled state. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| .gitkeep | ||
| .npmrc | ||
| biome.json | ||
| components.json | ||
| data-designer.openapi (1).yaml | ||
| eslint.config.js | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.app.json | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||