Skip to content

Token Consumption for Embedding API #6592

Answered by dmytrostruk
jmurkothintel asked this question in Q&A
Discussion options

You must be logged in to vote

@jmurkothintel Thanks for your question.
Current embeddings API doesn't allow to include metadata, since it returns multiple ReadOnlyMemory objects only:

Task<IList<ReadOnlyMemory<TEmbedding>>> GenerateEmbeddingsAsync(

We have ADR for new embedding design, which takes that into account and allows to return metadata as well. We will need to prioritize this item.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jmurkothintel
Comment options

@dmytrostruk
Comment options

Answer selected by sophialagerkranspandey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants