Skip to content

LLM plugin for asking questions of LLM's own documentation, and related packages

License

Notifications You must be signed in to change notification settings

simonw/llm-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm-docs

PyPI Changelog Tests License

Ask questions of LLM documentation using LLM

Installation

Install this plugin in the same environment as LLM.

llm install llm-docs

Usage

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

Development

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

About

LLM plugin for asking questions of LLM's own documentation, and related packages

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages