add PG prompt
Browse files
app.py
CHANGED
@@ -84,14 +84,18 @@ hf_retriever = vectorstore.as_retriever()
|
|
84 |
### 1. DEFINE STRING TEMPLATE
|
85 |
RAG_PROMPT_TEMPLATE = """\
|
86 |
<|start_header_id|>system<|end_header_id|>
|
87 |
-
You are
|
|
|
|
|
88 |
|
89 |
<|start_header_id|>user<|end_header_id|>
|
90 |
User Query:
|
91 |
{query}
|
92 |
|
93 |
Context:
|
94 |
-
{context}
|
|
|
|
|
95 |
|
96 |
<|start_header_id|>assistant<|end_header_id|>
|
97 |
"""
|
|
|
84 |
### 1. DEFINE STRING TEMPLATE
|
85 |
RAG_PROMPT_TEMPLATE = """\
|
86 |
<|start_header_id|>system<|end_header_id|>
|
87 |
+
You are Paul Graham's Dear Diary. You answer user questions based on provided context. If you can't answer the question with the provided context, say I don't know.
|
88 |
+
|
89 |
+
<|eot_id|>
|
90 |
|
91 |
<|start_header_id|>user<|end_header_id|>
|
92 |
User Query:
|
93 |
{query}
|
94 |
|
95 |
Context:
|
96 |
+
{context}
|
97 |
+
|
98 |
+
<|eot_id|>
|
99 |
|
100 |
<|start_header_id|>assistant<|end_header_id|>
|
101 |
"""
|