simonw / simonw/llm

Support for embedding modes / input types

Open
#457 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

embeddings enhancement
Dominant language
Python
Stars
12.5k
Forks
998
Avg merge
3d 13h
Merged PRs (30d)
10

Description

Several embedding models supported by LLM plugins have a concept of "modes" - usually called something like "task types" or "input types".

Some examples:

We need a mechanism to support these in LLM core itself, mainly for the llm similar command - we need to calculate the original stored embeddings for RETRIEVAL_DOCUMENT (in Gemini's terminology) but the search query should be RETRIEVAL_QUERY.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the llm similar command and the embedding-model integrations described in the issue. Compare how Gemini, Nomic, and E5-large-v2 represent document and query inputs, then define what a core mechanism must support; done means stored document embeddings and search-query embeddings can use their respective modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.