A tool plugin for LLM that allows you to search over your embedding collections.
Install this plugin in the same environment as LLM:
llm install llm-tools-ragUse -T RAG to enable the RAG tools. You can specify a non-default database with -T RAG("other_db.db").
llm -m claude-4-sonnet -T RAGTools "what are the available plugin hooks in llm?"To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-tools-rag
python -m venv venv
source venv/bin/activateInstall the dependencies and test dependencies:
pip install -e '.[test]'To run the tests:
pytest- llm: The LLM CLI tool this plugin extends
- sqlite-utils: For querying LLM's sqlite databases