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

bug: parsed LLM output which is configured to rails is invalid #908

Open
3 of 4 tasks
maheshgadipea opened this issue Dec 17, 2024 · 0 comments
Open
3 of 4 tasks
Labels
bug Something isn't working status: needs triage New issues that have not yet been reviewed or categorized.

Comments

@maheshgadipea
Copy link

Did you check docs and existing issues?

  • I have read all the NeMo-Guardrails docs
  • I have updated the package to the latest version before submitting this issue
  • (optional) I have used the develop branch
  • I have searched the existing issues of NeMo-Guardrails

Python version (python --version)

Python 3.9

Operating system/version

Linux Fedora

NeMo-Guardrails version (if you must use a specific version and not the latest

0.8.0

Describe the bug

rails_output = rails.generate(prompt=user_query)
rails_output is using LLM model backend and once it gets the ouput it parsing into True or False.

If message needs to be blocked LLM output should be No and rails_output should be True
If message needs to be allowed LLM output should be Yes and rails_output should be False.

But for few questions its not working as per above

Steps To Reproduce

user_query = "Explore dataset:ECOM_AZURE_SL for discount and plot scatter plot"
rails _ouput = rails.generate(prompt=user_query)

Expected rails _ouput should be True but its not

Expected Behavior

Expected rails _ouput should be True but its not .

If anyone can help directly to parse LLM output of rails, it would be great help ..

Actual Behavior

It giving response as False which is not correct

@maheshgadipea maheshgadipea added bug Something isn't working status: needs triage New issues that have not yet been reviewed or categorized. labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status: needs triage New issues that have not yet been reviewed or categorized.
Projects
None yet
Development

No branches or pull requests

1 participant