AnkiVec

AnkiWeb addon 2028823832

Generates local vector embeddings for Anki cards via Ollama, enabling semantic natural-language searches with the vec: query syntax and automatic indexing.
AI-generated summary; may contain mistakes.

aisync-integrationsearch

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
1 (πŸ‘ 1 Β· πŸ‘Ž 0)
Updated
2025-11-20
Anki versions
23.09~
Description language
en

Maintenance

stale

  • Last update or commit was 315 days before the snapshot (2025-11-20).
  • The repository has 2 test files.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.123.09+2025-11-20
History across monthly snapshots

Loading…

Similar addons

Anki Semantic Search

Searches Anki notes by meaning with keyword, embedding, or hybrid retrieval, then generates cited AI answers using local or cloud providers.

aisearch

Rating 3 πŸ‘ 3 Β· πŸ‘Ž 0 ⭐ 3 Anki 25.09.2~ Updated 2026-06-15
Semantic search

Enables meaning-based natural-language card search via embeddings, with optional Claude reranking, smart multi-vector search, duplicate finding, suspend/unsuspend, scheduling, vignette, and guideline review tools.

aischedulingduplicatessearch

Rating 8 πŸ‘ 8 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2026-04-05
Smart Search

Finds Anki cards via natural-language local AI search, returning matching cards, copy-paste queries, related concepts, and optional picture or semantic search.

aisearch

Rating 1 πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 1 Anki 2.1.2~ Updated 2026-06-27
Easy Search

Enables offline semantic and hybrid card search by meaning and keywords, with local AI reranking, browser semantic: queries, and a dialog for previewing and suspending cards.

aisearch

Rating 2 πŸ‘ 1 Β· πŸ‘Ž 1 Anki 2.1.1~ Updated 2026-05-30

README

AnkiVec - Vector Search for Anki

This anki addon creates vector embeddings for your cards, allowing you to search using natural language queries rather than keywords.

Features

  • Vector Embeddings: Generate embeddings for all cards using local Ollama models
  • Semantic Search: Find cards by meaning, not just keywords
  • Fast Local Processing: Uses lightweight embedding models (nomic-embed-text by default)
  • Persistent Storage: ChromaDB stores embeddings for quick retrieval

How to Use It

When you restart Anki after installing the add-on, a vector-database will be initialized for your deck. This process may take a few minute- you should see a loading dialog with a progress bar. From this point on, any changes to your deck will be automatically indexed.

To search the vector database, use the form "vec: [your query here]" in Anki's usual search bar. You can combine keyword searches with vector searches by putting the "vec" section at the end of the query: e.g. "keyword1 keyword2 vec: [natural language description]".

Prerequisites

  1. Anki (version 2.1.45+)
  2. Ollama installed and running locally

Install Ollama

Download from ollama.ai and install.

Pull the embedding model:

ollama pull nomic-embed-text

Configuration

There are three parameters that govern how AnkiVec operates, available in the add-on's configuration dialog:

  • model_name: The name of the Ollama model to use for generating embeddings. The default is "nomic-embed-text", but you can specify any model supported by Ollama (for example, "kronos483/MedEmbed-large-v0.1" for a specialized medical model).
  • search_results_limit: The maximum number of search results to return. Default is 20.
  • ollama_host: The URL of the Ollama server. Default is "http://localhost:11434".

Future Plans

  • Other Platforms: Currently, only Mac OS is supported. Windows support should be straightforward if I can get my hands on a Windows machine. Linux support is more tricky, as the uv binary bundled with Anki will be installed in different places depending on your distribution. I need to investigate how Anki is distributed in different package managers.

  • Ordering by Relevance: Currently, Anki's search feature allows you to filter the cards you seen in the Browser, but not to order them by a specific relevance score. Implementing this as an add on might require obscene amounts of monkey patching, but I think it will be worth the effort.

  • Debugging Ollama: Ollama can be buggy. A small fraction of Anki notes cause Ollama to throw an error when generating embeddings. This is a known issue, and I'm working on figuring out what's going on.