Skip to content

add tracing support for the embeddings router filter #1085

@codefromthecrypt

Description

@codefromthecrypt

Description:

@Xunzhuo asked me about tracing support for embeddings, and here's info from @mikeldking (phoenix lead)

We do have some ways to evaluate embeddings, notably finding outliers (e.g. toxic content, out of bounds questions) as well as EDA (question space exploration)
But the benefit of logging embeddings does come at a storage cost.
In general if you're doing things like query expansion or agentic RAG, I can see it being useful to see the text getting embedded.

It makes sense to add support for the embeddings endpoint, by recording openai responses, openinference spans, and creating the impl like we did for chat completions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions