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

Additions to the Tru API for working with large databases #848

Open
1 of 6 tasks
epinzur opened this issue Feb 2, 2024 · 3 comments
Open
1 of 6 tasks

Additions to the Tru API for working with large databases #848

epinzur opened this issue Feb 2, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Comments

@epinzur
Copy link
Contributor

epinzur commented Feb 2, 2024

I've been working primarily with very large databases and I find the Tru API to be a bit lacking.

In particular, methods like the following would be very helpful:

  • * tru.list_records(app_id): Get a list of record_ids in an app.
  • * tru.get_record_and_feedback(record_id): Get a single record and its feedback results from the database.
  • * tru.delete_record(record_id): Delete a single record from the database. (Useful to remove duplicate records from an App without having to reset the database and start over)
  • * tru.delete_app(app_id): Delete an app from the database. (without having to reset the database and start over) (Helpful when an App run didn't complete due to an exception) - done in App delete functionality added #1061 by @arn-tru

These methods would be helpful, but not as high priority:

  • * tru.get_incomplete_records(app_id, [feedback_function_names]): Returns a list of record_ids where the passed feedback function names don't yet have a value. Basically a way to test if the app has a full set of data yet, and if not, return the records that need to be finished.

Finally, some paging functionality would be helpful on:

  • * tru.get_records_and_feedback(app_ids)
@priyalorha
Copy link

#939 ?

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Mar 19, 2024
@arn-tru
Copy link
Contributor

arn-tru commented Apr 8, 2024

Hi @epinzur,

We're excited to announce that the delete_app functionality has been implemented and will be available in the next release!

@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Apr 8, 2024
@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label May 9, 2024
Copy link

dosubot bot commented May 9, 2024

Hi, @epinzur,

I'm helping the trulens team manage their backlog and am marking this issue as stale. From what I understand, you requested additional methods to be added to the Tru API to better support working with large databases. There have been some developments in the comments, including a pull request from priyalorha and the implementation of the delete_app functionality announced by arn-tru.

Could you please confirm if this issue is still relevant to the latest version of the trulens repository? If it is, please let the trulens team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Projects
None yet
Development

No branches or pull requests

4 participants