Skip to content

Conversation

@JWinermaSplunk
Copy link
Contributor

add retrieval type to genai utils

@shuningc
Copy link
Contributor

shuningc commented Dec 9, 2025

Overall looks good to me.

# Recommended attributes
retriever_type: Optional[str] = field(
default=None,
metadata={"semconv": "gen_ai.retrieval.type"},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Shall we use those constants when available instead of hardcoding ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, think I didn't want to add attributes directly to GenAIAttributes before they were officially in semconv, so it should be revisited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants