mitulagr2 commited on
Commit
3f20396
·
1 Parent(s): 9266b9a

Update rag.py

Browse files
Files changed (1) hide show
  1. app/rag.py +3 -2
app/rag.py CHANGED
@@ -19,8 +19,9 @@ class ChatPDF:
19
  self.text_splitter = RecursiveCharacterTextSplitter(chunk_size=2048, chunk_overlap=128)
20
  self.prompt = PromptTemplate.from_template(
21
  """
22
- You are an assistant for question-answering tasks. Use the following pieces of context
23
- to answer the question. If you don't know the answer, just say that you don't know.
 
24
  Question: {question}
25
  Context: {context}
26
  Answer:
 
19
  self.text_splitter = RecursiveCharacterTextSplitter(chunk_size=2048, chunk_overlap=128)
20
  self.prompt = PromptTemplate.from_template(
21
  """
22
+ You are an assistant for question-answering tasks. Use the following pieces of retrieved context to
23
+ answer the question. If you don't know the answer, just say that you don't know. Use three sentences
24
+ maximum and keep the answer concise.
25
  Question: {question}
26
  Context: {context}
27
  Answer: