When setting config from path, the model does not listen to off topic guidelines #174
Unanswered
birgitbartels
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone!
I'm facing some problems with the RailsConfig.from_path(path_name) function. When I enter the path name of my config folder in which you can find my config.yaml file and off_topics.co file, it does seem to work, as the correct predefined greetings are used. However, when I ask a question about one of the off_topic topics, it does not use the predefined answer but generates an answer from chatgpt-3.5-turbo, the model used.
When I paste the exact same Colang content as a string into my Python file, on the contrary, and use the function RailsConfig.from_content(colang_content=colang_content, yaml_content=yaml_content) without changing anything else from my code, it does give both the correct predefined greetings and the correct answer when someone asks something about sports/politics.
Does anyone maybe know why the off-topics do work with RailsConfig.from_content, but not with RailsConfig.from_path or what I might be doing wrong?
Thank you!!
This is the Colang content I used:
Beta Was this translation helpful? Give feedback.
All reactions