llama_core

Module embeddings

Source
Expand description

Define APIs for computing embeddings.

Functionsยง

  • Generate a list of chunks from a given text. Each chunk will be up to the chunk_capacity.
  • Get the dimension of the embedding model.
  • Compute embeddings for the given input.