Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,15 @@ embeddings = MyEmbeddings()
|
|
73 |
|
74 |
splitter = SemanticChunker(embeddings)
|
75 |
|
|
|
|
|
76 |
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
|
79 |
# Create CLI.
|
|
|
73 |
|
74 |
splitter = SemanticChunker(embeddings)
|
75 |
|
76 |
+
PROMPT_TEMPLATE = """
|
77 |
+
Answer the question based only on the following context:
|
78 |
|
79 |
+
{context}
|
80 |
+
|
81 |
+
---
|
82 |
+
|
83 |
+
Answer the question based on the above context: {question}
|
84 |
+
"""
|
85 |
|
86 |
|
87 |
# Create CLI.
|