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

StatementGeneratorPrompt's instruction mentions "statements", but these are not part of inputs anymore #1904

Open
diegodebrito opened this issue Feb 5, 2025 · 1 comment
Labels
bug Something isn't working module-metrics this is part of metrics module

Comments

@diegodebrito
Copy link

[X ] I have checked the documentation and related resources and couldn't resolve my bug.

Describe the bug
A clear and concise description of what the bug is.

This is probably a minor one. I am just opening for awareness, and it could impact the results when using less capable LLMs.

The instruction for StatementGeneratorPrompt start with "Given a question, an answer, and sentences from the answer [...]", but sentences are not part of the inputs anymore. Just question and answer. I believe this was changed in a recent PR.

instruction = "Given a question, an answer, and sentences from the answer analyze the complexity of each sentence given under 'sentences' and break down each sentence into one or more fully understandable statements while also ensuring no pronouns are used in each statement. Format the outputs in JSON."

Ragas version: main branch in this repo
Python version: not applicable

Code to Reproduce

Not applicable

Error trace

Not applicable

Expected behavior

Instruction should reflect the fact that simple statements are extracted from the full answer now, and not the answer statements.

Additional context
Add any other context about the problem here.

@diegodebrito diegodebrito added the bug Something isn't working label Feb 5, 2025
@dosubot dosubot bot added the module-metrics this is part of metrics module label Feb 5, 2025
@sahusiddharth
Copy link
Collaborator

Hi @diegodebrito,

Thank you for pointing that out. I’ve raised a PR to address and fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module-metrics this is part of metrics module
Projects
None yet
Development

No branches or pull requests

2 participants