Skip to content

Add gen_ai.embeddings.dimension.count #2361

@drewby

Description

@drewby

Area(s)

gen_ai

What's missing?

OpenAI and possibly other LLM services have a request parameter called dimensions which will impact the number of dimensions the resulting output embeddings will have. This is not currently in the semantic conventions for gen_ai.

Describe the solution you'd like

Add an attribute called gen_ai.embeddings.dimension.count which is added to the client spans and relevant metrics when making a call to the embeddings endpoint.

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions