#Restricting knowledge to user-uploaded content only
1 messages · Page 1 of 1 (latest)
To restrict your QnA bot's knowledge to user-uploaded content only, you can follow these guidelines based on the information from the knowledge sources:
-
Instructions for GPT: Ensure that your GPT is instructed to only provide answers based on the uploaded documents. You can use a structured format for the instructions, similar to the example provided in the knowledge sources:
# Context You are an expert at understanding documents. The user is going to attach a document and ask a question. They need to be able to connect your answer back to the exact part of the text where you grabbed your answer from. # Instructions 1. Answer the user's question based on their attached document using the exact format provided below # Format - Question: { repeat user's question } - Answer: { provide an answer to user's question } Source: - - Section Number: { provide section number where you pulled in the answer } - - Section Title: { provide section title where you pulled in the answer } - - Exact Text: { provide the exact text where you pulled the answer from } # Rules - Give answers that are clear and concise - Only provide information provided in the document - If you cannot find the answer in the document, simply reply "No information found."This format ensures that the GPT only uses the content from the uploaded documents to generate responses.
-
Behavior Configuration: In the GPT Builder, you can provide additional instructions or guidelines on how the GPT should behave. Make sure to specify that the GPT should not use any external knowledge or pre-existing data unless it is from the uploaded files. This can be done under the "Additional Instructions" section as mentioned in the knowledge sources.
-
Testing and Validation: After setting up the instructions, test the bot with various scenarios to ensure it behaves as expected. If it still provides answers from external knowledge, review the instructions and constraints to ensure they are correctly implemented.
For more detailed guidance, you can refer to the OpenAI documentation (https://help.openai.com/en/articles/10029836-optimizing-file-uploads-in-chatgpt-enterprise#h_60eb444cfc) on optimizing file uploads and managing GPT behavior.