Achieving Bot Responses Using the Knowledge Base Format

Hi there. It sounds like what you are trying to achieve is you want all your outputs to follow a very particular formatting convention. If you want all outputs from your chatbot to follow the JSON format, I suggest you add some instruction to your prompt to the following effect:

##OUTPUT FORMATTING##

  • Whenever referencing information from the Knowledge base, make sure to format all outputs as JSON objects with a title, link, and description section.