Find answers from the community

Updated 2 weeks ago

Customising a Prompt for Your Chatbot

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