Skip to content

Commit

Permalink
tune stuff prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mmz-001 committed Sep 11, 2023
1 parent d644d4d commit 4e59b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knowledge_gpt/core/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from langchain.prompts import PromptTemplate

## Use a shorter template to reduce the number of tokens in the prompt
template = """Create a final answer to the given questions using the provided document excerpts(in no particular order) as references. ALWAYS include a "SOURCES" section in your answer including only the minimal set of sources needed to answer the question. If you are unable to answer the question, simply state that you do not know. Do not attempt to fabricate an answer and leave the SOURCES section empty.
template = """Create a final answer to the given questions using the provided document excerpts (given in no particular order) as sources. ALWAYS include a "SOURCES" section in your answer citing only the minimal set of sources needed to answer the question. If you are unable to answer the question, simply state that you do not have enough information to answer the question and leave the SOURCES section empty. Use only the provided documents and do not attempt to fabricate an answer.
---------
Expand Down

0 comments on commit 4e59b37

Please sign in to comment.