Find answers from the community

Updated 3 months ago

Hey guys I m using the `create llama

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
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