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

How to get, Prompt, Output, and Assertion value into Python #773

Closed
P-Sood opened this issue May 12, 2024 · 2 comments
Closed

How to get, Prompt, Output, and Assertion value into Python #773

P-Sood opened this issue May 12, 2024 · 2 comments

Comments

@P-Sood
Copy link

P-Sood commented May 12, 2024

I am using a Python script as my prompt, and I was wondering how I could get the final LLM response from my provider and the assertion response.

I am using the llm-rubric assert type, and I will probably keep it that way.

I've seen the "Provider" Python script, but I can't tell how to get the Assertion response back because I can't figure out how to get the test case's assertion value to compare the original outputs against.

@typpo
Copy link
Collaborator

typpo commented May 17, 2024

Finding it a little hard to follow - can you give me an example of what you're trying to do?

@typpo typpo closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2024
@P-Sood
Copy link
Author

P-Sood commented May 27, 2024

Hi @typpo, I got caught up with something. What I am asking for is a way to get all 4:

  1. original prompt,
  2. the llm responses to that original prompt,
  3. the test case,
  4. and the llm-rubric assessment response comparing the test case to the original llm response

Having all 4 at once in Python would be cool, and I'm wondering if there is any way to achieve that, because I want to use all 4 into a different script.

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

No branches or pull requests

2 participants