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. |
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| src-tauri | ||
| __init__.py | ||
| install_llama_prebuilt.py | ||
| install_python_stack.py | ||
| LICENSE.AGPL-3.0 | ||
| package-lock.json | ||
| package.json | ||
| setup.bat | ||
| setup.ps1 | ||
| setup.sh | ||
| Unsloth_Studio_Colab.ipynb | ||