Should I put questions for my bot to ask in the Prompt or Knowledge Base?

Hi. I’m trying to build a pickax bot that is supposed to use a document I uploaded to the knowledge base. The knowledge base document has questions that the bot is supposed to ask the user and then produce an pdf when the bot finishes going through the knowledge base document. The problem I am running into is that the bot doesn’t make it through the questions and it often asks the same question multiple times. The document is roughly a page and half long…

Does anyone have any ideas on what the problem could be?

Thanks!

Hi @condorbotzai and welcome to the Pickaxe community!

From what I understand, here are some viable solutions that you can try:

  1. If the questions should pop up at the beginning of your chat session: Add the question as an ‘Intro message’

  2. If the question should pop up at a later interval during your chat session: You want to take that question that you integrated into your knowledge base and insert it into the ‘Role’ (core prompt) section instead. Think of the logical workflow of the conversation to determine where the question should be asked by the AI.

Finally, you want to use the KB as a repository of information that is critical to your Pickaxe’ use-case. Check out this video I made on how to set up your knowledge base:

Hope that helps!

Thank you. This is a great way to work through this process. I look forward to reviewing the video again.

What I am trying to do is have the bot ask specific questions. This looks like a great way to handle this.

I will keep you posted.

1 Like

Instructions for how the bot should behave (like questions it should ask) should be put into the prompt directly. The Knowledge Base is best for things the chatbot should know sometimes but doesn’t need to know at every step of the conversation.

The simple fix to your problem will be copy/pasting the documents’ text into the prompt (Role). You might find the “step by step course creator” template in the chatbot builder a helpful example to follow.

1 Like

Excellent. Thank you so much!

1 Like

Hi, i wanted to say THANK YOU! The suggestions worked. What did was apply the question to more core prompt and gave additional instructions in the prompt injection.

2 Likes