hbui commited on
Commit
ae6c675
1 Parent(s): 3455cec

Update models/langOpen.py

Browse files
Files changed (1) hide show
  1. models/langOpen.py +11 -1
models/langOpen.py CHANGED
@@ -12,7 +12,17 @@ from langchain_pinecone import PineconeVectorStore
12
  prompt_template = """Answer the question using the given context to the best of your ability.
13
  If you don't know, answer I don't know.
14
  Context: {context}
15
- Topic: {topic}"""
 
 
 
 
 
 
 
 
 
 
16
 
17
  PROMPT = PromptTemplate(template=prompt_template, input_variables=["context", "topic"])
18
 
 
12
  prompt_template = """Answer the question using the given context to the best of your ability.
13
  If you don't know, answer I don't know.
14
  Context: {context}
15
+ Topic: {topic}
16
+
17
+ Use the following example format for your answer:
18
+ [FORMAT]
19
+ Answer:
20
+ The answer to the user question.
21
+ Reference:
22
+ The list of references to the specific sections of the documents that support your answer.
23
+ [END_FORMAT]
24
+ """
25
+
26
 
27
  PROMPT = PromptTemplate(template=prompt_template, input_variables=["context", "topic"])
28