Skip to content

Latest commit

Β 

History

History
69 lines (48 loc) Β· 1014 Bytes

File metadata and controls

69 lines (48 loc) Β· 1014 Bytes

Reference

client.contextualizedEmbed({ ...params }) -> VoyageAI.ContextualizedEmbedResponse

πŸ“ Description

The Voyage contextualized embeddings endpoint receives as input a list of documents (each document is a list of chunks), and returns contextualized embeddings for each chunk. The embeddings capture both the local chunk content and the global document context, making them particularly effective for retrieval tasks where understanding document-level context is important.

πŸ”Œ Usage

await client.contextualizedEmbed({
    inputs: [["inputs"]],
    model: "model",
});

βš™οΈ Parameters

request: VoyageAI.ContextualizedEmbedRequest

requestOptions: VoyageAIClient.RequestOptions