v21

latestOpenAPI 3.1.0raw.githubusercontent.com2025-05-22122299.2 KB

Embeddings Refinery

Adds embeddings to a list of provided chunks using a specified embedding model.

post/v1/refine/embeddings

Request body

embedding_modelstring required

Model identifier (e.g., from Hugging Face) or a compatible embedding model instance string representation.

Response

Successful Response: A list of Chunk objects with added embeddings.

textstring

The actual text content of the chunk.

start_indexinteger

The starting character index of the chunk within the original input text.

end_indexinteger

The ending character index (exclusive) of the chunk within the original input text.

token_countinteger

The number of tokens in this specific chunk, according to the tokenizer used.

contextstring nullable

Chunk context.

embeddingnumber[] nullable

Embedding vector (list of floats) for the chunk.