Skip to content

AnkiHubSoftware/ankihub-llm-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm-anki-search

PyPI Tests License

LLM tools for searching AnkiHub notes using semantic search.

Installation

llm install llm-anki-search

Usage

Using the template

The plugin provides an anki:search template that searches for relevant Anki notes based on input text:

llm -t anki:search "The citric acid cycle is a series of chemical reactions..."

Using the tool directly

You can also use the search_notes tool directly in chat or with other templates:

llm chat -T search_notes

Or reference it in your own templates:

name: my-template
tools:
  - search_notes
prompt: |
  Find notes related to: $input

Configuration

The plugin requires a Mixedbread API key. Set it via environment variable:

export MIXEDBREAD_API_KEY=your-api-key

Development

Install for development:

git clone https://github.com/andrewsanchez/ankihub-llm-tools
cd ankihub-llm-tools
pip install -e '.[test]'

Run tests:

python -m pytest

License

Apache 2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages