Technologies/LlamaIndex/llama_index.embedding.tokens
LlamaIndexLlamaIndexMetric

llama_index.embedding.tokens

Total tokens in embeddings
Dimensions:None
Available on:OpenTelemetryOpenTelemetry (1)DatadogDatadog (1)
Interface Metrics (2)
OpenTelemetryOpenTelemetry
Number of tokens processed during embedding operations
Dimensions:None
DatadogDatadog
Total number of tokens used in embedding operations (prompt + completion)
Dimensions:None
Related Insights (2)
LlamaIndex Embedding Token Inefficiencywarning

LlamaIndex embedding operations consume excessive tokens due to redundant document processing, lack of caching, or inefficient chunking strategies, increasing costs and latency.

LlamaIndex Embedding Batch Processing Inefficiencyinfo

Document embedding during indexing is inefficient due to small batch sizes or lack of batching, causing excessive API calls, increased latency, and higher costs compared to batch processing.