Ask questions of LLM documentation using LLM
Install this plugin in the same environment as LLM.
llm install llm-docs
This depends on LLM 0.24 or higher.
You can ask questions of the LLM documentation like this:
llm -f docs: 'How do I calculate embeddings for a CSV file?'
For LLM the fragment will contain the exact documentation for the version of LLM you are running.
It also works against other packages that have their documentation recorded in the docs-for-llms repository, for example sqlite-utils
:
llm -f docs:sqlite-utils 'How do I vacuum my database?'
For these tools the most recent stable release documentation will be used.
To access the most recent alpha documentation instead use the docs-preview
prefix:
llm -f docs-preview:datasette "List all available plugin hooks" -m gemini-2.0-flash
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-docs
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
python -m pytest