Skip to content

[BUG] How to get the app_id from the program to filter the records and leaderboard based on the app_id? #1888

@Sudhakar17

Description

@Sudhakar17

Bug Description
What happened?

As far as I know, app_id is deterministically created using app_name and app_version. I dont have access to get it from any interface clearly.

I have checked the documentation and read through the source code.

for rec in virtual_records:

        print(rec.main_input, "-->", rec.main_output)

        for feedback, feedback_result in rec.wait_for_feedback_results().items():
            print("\t", feedback.name, feedback_result.result)
    app_id = rec.app_id

leaderboard = tru_session.get_leaderboard(app_ids=[app_id ])
records, feedbacks = tru_session.get_records_and_feedback(app_ids=[app_id ])

There should be someother way to get the app_id. Also, we are not allowed to create app_id to track it, right?
Could you please tell me the right way to get the app_id?

Environment:

  • OS: [Windows]
  • Python Version 3.12
    trulens==1.4.6
    trulens-providers-openai==1.4.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions