Skip to content

Comments

Retrieval support#92

Open
JWinermaSplunk wants to merge 5 commits intosignalfx:mainfrom
JWinermaSplunk:retrievals
Open

Retrieval support#92
JWinermaSplunk wants to merge 5 commits intosignalfx:mainfrom
JWinermaSplunk:retrievals

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.

)

# Opt-in attribute
results: list[dict[str, Any]] = field(
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be structured data like input and output messages instead of list?

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.

4 participants