You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
I need to be able to a) set the system prompt on a per namespace basis and b) edit/set that prompt while canopy is already running, not just at startup....
from a cursory glance at chat_engine.py it seems that what I want can already be achieved by passing allow_model_params_override = True to the chat engine initialization and then pass the desired system prompt to any calls to chat() ..?
am I correct in this line of thinking?
edit: system prompt is not a model param ... but chat() already accepts system prompt as a parameter if that ends up being the route to go ... I am still going to investigate moving system prompt from the chat engine initialization to looking elsewhere for it when a namespace is used ... more to follow 😀
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I need to be able to a) set the system prompt on a per namespace basis and b) edit/set that prompt while canopy is already running, not just at startup....
from a cursory glance at chat_engine.py it seems that what I want can already be achieved by passing allow_model_params_override = True to the chat engine initialization and then pass the desired system prompt to any calls to chat() ..?
am I correct in this line of thinking?
edit: system prompt is not a model param ... but chat() already accepts system prompt as a parameter if that ends up being the route to go ... I am still going to investigate moving system prompt from the chat engine initialization to looking elsewhere for it when a namespace is used ... more to follow 😀
Beta Was this translation helpful? Give feedback.
All reactions