Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Hey guys I m using the `create llama
Hey guys I m using the `create llama
Inactive
0
Follow
C
Cesar
last year
Β·
Hey guys! I'm using the
create_llama_chat_agent
and I'm wondering, how can I set the system prompt in this case?
L
1 comment
Share
Open in Discord
L
Logan M
last year
ngl there isn't an easy way to do this haha
You can't add a system prompt to the agent itself (as far as I know), since langchain doesn't really expose that
But you can adjust the prefix of the agent
create_llama_chat_agent(..., agent_kwargs={"PREFIX": "My Prefix"})
Here's the default prefix
https://github.com/hwchase17/langchain/blob/e5611565b7436a522cf700c8b1125a56f17bc900/langchain/agents/conversational_chat/prompt.py#L2
Add a reply
Sign up and join the conversation on Discord
Join on Discord