Comments (2)
Hi @jamescalam! Thanks for reporting this. It is indeed a bug. I've already tested a fix and will be pushed to the main branch in the next day or so.
Meanwhile, you can try an alternative method, which will work even better (although at the cost of an extra LLM call):
define flow give name
user give name
# Extract the user's name
$name = ...
bot name greeting
It uses the mechanism for extracting user provided values: https://github.com/NVIDIA/NeMo-Guardrails/blob/main/docs/user_guide/advanced/extract-user-provided-values.md.
The advantage of this approach is that if the user responds with "My name is John", in this approach the name will be extracted correctly, whereas in your initial code the name would have been the full sentence.
I'll close this once the fix is pushed.
Thanks again!
from nemo-guardrails.
For the record, this is now fixed (1ace2a7).
from nemo-guardrails.
Related Issues (20)
- How to add prompts.yml contents in RailsConfig.from_content() configuration HOT 2
- Support langchain 0.2.* HOT 5
- [Feature Request] Vision-Language Model Guardrails for Sensitive Image Detection (PII, etc.)
- Colang 2.0 multi_modal tutorial error HOT 2
- Not able to add Actions with Custom LLM Engine with nemo guardRails
- Issue while trying to use HOT 1
- [BUG] colang content causing streaming issues HOT 5
- [BUG] LLMGenerationActions.generate_value() fails if the value is not a number HOT 4
- The message "yes" is blocked by the input rail. HOT 2
- Installation issue on mac m1 HOT 4
- Support for KB/Retrieval rails without dialog rails
- [DEP_ISSUE] issue with sentence-transformers, huggingface_hub => fastembed HOT 2
- RAG Example doesn't work with guardrails, not using the knowledge base. HOT 4
- Error : Organization has been restricted HOT 1
- ValueError: Invalid embedding engine: SentenceTransformer HOT 7
- Off topic rail accuracy improvement HOT 1
- Error while execution generate_user_intent: 'NoneType' object has no attribute 'agenerate_prompt'
- What are the options to use NeMo Guardrails with Agents until Agent support is added?
- Error in `VerboseHandler` when `::` present in log messages but not ` :: `. HOT 1
- Unable to install any version > 0.7.0 of nemoguardrails using pipenv install nemoguardrails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nemo-guardrails.