-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(traces): graphql query for document evaluation summary #1874
Conversation
src/phoenix/core/traces.py
Outdated
# Update number of documents | ||
num_documents = len(span.retrieval.documents) | ||
if existing_span: | ||
num_documents -= len(existing_span.retrieval.documents) | ||
if num_documents: | ||
self._num_documents[span_id] += num_documents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you help understand this update logic?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's just the difference, but i was too lazy to create a new variable. my bad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think i can call it num_documents_update
instead of num_documents
, and that should do it
resolves #1875
Metrics