Query local/private documents through AnythingLLM's RAG API.
Environment variables (set in TOOLS.md or shell):
ANYTHINGLLM_URL — default http://localhost:3001ANYTHINGLLM_API_KEY — API tokenANYTHINGLLM_WORKSPACE — default workspace slugScript location: scripts/anythingllm.sh
Use AnythingLLM RAG when:
Use default model when:
bash scripts/anythingllm.sh query "你的问题"
bash scripts/anythingllm.sh upload /path/to/file.pdf
bash scripts/anythingllm.sh upload-text "文本内容" "文档标题"
bash scripts/anythingllm.sh list-docs
bash scripts/anythingllm.sh health
Query returns JSON with:
textResponse — the RAG-generated answersources — array of source documents used for contextPresent the answer to the user, citing relevant sources when available.
scripts/ directory — use paths relative to skill location共 1 个版本