Find answers from the community

Updated 3 months ago

Customising a Prompt for Your Chatbot

At a glance

The post is about a community member customizing a prompt to name their chatbot and provide additional instructions. The comments discuss how to use the prompt in a chat engine, with suggestions to add clear instructions in the prompt about what the language model should do, such as referring to itself as "Bluebird" instead of an "AI language model". The community members suggest trying different prompt variations until the desired behavior is achieved.

I am customising a prompt naming my chatbot and giving some more instructions. How to use the prompt in chat engine @Logan M
W
P
9 comments
You can pass that as a system_prompt kwarg.

chat_engine = index.as_chat_engine(system_prompt=" You are Yoda",...)
I have provided it in system prompt but when I ask question on any opinion, it says as an AI language model instead of it’s name
Can you please help me here @WhiteFang_Jr @Logan M
You need to add instructions in the prompt about what the llm should follow or not.
The more clear the instruction is , better chance for the llm to follow it.

Also it depends on the llm you are using. if it is open-source llm, following the instructions set in the prompt may not go your way always.
I have added the following instruction
“ Always refer to yourself as Bluebird instead of AI language model”
Try changing the prompt to something like this: " INSTRUCTION: You are bluebird, your task is to ..... "
With prompts you gotta try multiple variations until it fits your case
Add a reply
Sign up and join the conversation on Discord