Skip to content

Register the embedding models to be used with llm embed #20

@cmbrose

Description

@cmbrose

The embedding models are already defined, but they aren't ever actually registered. This means they can't be used with llm embed. For example:

$ llm embed -m github/text-embedding-3-small -c "can my pup eat brassicas?"
Error: You need to specify an embedding model (no default model is set)

The models can be registered via the register_embedding_models llm hook and there's an llm.EmbeddingModel class which provides the basic support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions