-
Notifications
You must be signed in to change notification settings - Fork 231
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]: implement Test set drawer UI #2328
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
feels like some cleanup is needed 🙏
agenta-web/src/components/pages/observability/drawer/TraceContent.tsx
Outdated
Show resolved
Hide resolved
agenta-web/src/components/pages/observability/drawer/TraceContent.tsx
Outdated
Show resolved
Hide resolved
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.
Looking good 👍
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.
Thanks, @ashrafchowdury—it looks great.
However, there’s a feature that’s not implemented (maybe it wasn’t clearly communicated in the Figma notes).
We want to make it quick for the user to add new data points to a test set by:
1. Reusing the previous configuration.
2. Offering sensible defaults.
For point 1:
When a user adds a data point to a test set with a certain mapping, the next time they click “Add to Test Set,” we should reuse the same mapping as much as possible. This means:
1. The same test set will be selected by default.
2. We will display the same mapping, as long as both the source and sink of all the mappings exist. If not, we will show the default mapping.
For point 2:
We will show a default mapping. Right now, you only provide defaults for the mapping sources. We would also like to provide defaults for the mapping sinks. Here’s the simple algorithm we would use:
- If the user is creating a new test set, we will name all the columns by default using the last element of the address. For example, for
data.input.input.country
, the default name for the column will be country. - If the user is selecting a pre-existing test set, we will use the column with the name of the last element of the address if it exists. For example, for
data.input.input.country
, if country exists as a column in the test set, we will select country by default. If it does not exist, we will keep the current behavior.
CleanShot.2024-12-04.at.18.13.33.mp4Non-parent spans can be selected in the parent view but not added to the test set. I don't see a reason why you could not add them |
All features that are related to intelligence are for checkpoint-2, for checkpoint-1 everything will be manual, with no intelligence. |
@mmabrouk Both Divider UI and child node selection issue has been fixed ✅ |
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.
Thank you @ashrafchowdury ! lgtm
Description
This PR aims to add a feature to save observability traces as testset.
Related Issue
Closes AGE-1337
QA
Verify Traces: Ensure traces are visible in the Observability section.
Select Traces and Open Test Set Drawer: Select multiple traces using checkboxes and click 'Add Test Set' to open the drawer.
Choose or Create Test Set:
Manage Columns:
Preview Data: Confirm data is visible immediately after column selection and verify preview options work for both all data and specific subsets.
Save Test Set: Ensure the Test Set saves successfully without errors.