Skip to content
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

added datapoint count on dataset table #288

Merged
merged 28 commits into from
Dec 27, 2024

Conversation

devansh-m12
Copy link
Contributor

@devansh-m12 devansh-m12 commented Dec 23, 2024

fixes #274

@dinmukhamedm added "DataPoints Count" in dataset table, ss for refrence let me know for any changes
Screenshot 2024-12-23 at 7 41 16 PM


Important

Add datapoints count to dataset table in both backend and frontend.

  • Backend:
    • In route.ts, added datapointsCount to the dataset query using a subquery to count datapoints from datasetDatapoints.
  • Frontend:
    • In datasets.tsx, added a new column datapointsCount to the dataset table to display the count of datapoints.

This description was created by Ellipsis for c4cf0bd. It will automatically update as commits are pushed.

dinmukhamedm and others added 27 commits October 29, 2024 21:00
Readme fixes and global colors
Update landing and welcome email, contrib experience, minor fixes
Improve onboarding, fix eval page placeholder
Explicit mapping in labels + frontend improvements
add claude-3-5-haiku to pipeline and prices (lmnr-ai#174)
fix evaluations query in labeling queue (lmnr-ai#176)
Middleware auth, traces page efficiency
improve UI for workspaces + internal fixes
Store label values sent from association properties
* initial work to compare evals

* remove unnecessary div

* design

---------

Co-authored-by: Din <[email protected]>
disable all clickhouse queries for non-full builds (lmnr-ai#213)
update models in pipeline templates to 4o family (lmnr-ai#215)
Fix realtime and manual spans
Semantic search API, blogs, minor fixes
update rust deps and fix blog images (lmnr-ai#246)
Allow disabling tracing, search by spans
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to c4cf0bd in 10 seconds

More details
  • Looked at 56 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. frontend/app/api/projects/[projectId]/datasets/route.ts:55
  • Draft comment:
    The use of COALESCE and casting to int is unnecessary here since COUNT(*) already returns an integer. You can simplify the SQL expression by removing COALESCE and the cast to int.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The SQL query for counting datapoints is correct, but the use of COALESCE and casting to int is unnecessary since COUNT(*) already returns an integer. Simplifying this can improve readability.

Workflow ID: wflow_9xSSko7q41uApSNX


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Member

@dinmukhamedm dinmukhamedm left a comment

Choose a reason for hiding this comment

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

@devansh-m12 looks good overall, quick question: did you test it with empty datasets? By definition SQL's COALESCE may return null, because it returns first non-null value out of its arguments. Just to make sure things are working fine, we should test that case too.

Also, can you set the target branch to dev?

@devansh-m12 devansh-m12 changed the base branch from main to dev December 24, 2024 06:45
Copy link
Member

@dinmukhamedm dinmukhamedm left a comment

Choose a reason for hiding this comment

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

@devansh-m12 left a small nit. I'll merge this once it's fixed

@dinmukhamedm dinmukhamedm merged commit a11f537 into lmnr-ai:dev Dec 27, 2024
2 checks passed
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.

Add "items count" column to the list of datasets
3 participants