Spaces:
Sleeping
Sleeping
Update qa_engine.py
Browse files- qa_engine.py +1 -3
qa_engine.py
CHANGED
|
@@ -8,9 +8,7 @@ def query_faiss(query, index, embedder, chunks, top_k=3):
|
|
| 8 |
|
| 9 |
def build_prompt(context, question):
|
| 10 |
return f"""You are an AI assistant. Use the following context to answer the question.
|
| 11 |
-
|
| 12 |
Context:
|
| 13 |
{context}
|
| 14 |
-
|
| 15 |
Question: {question}
|
| 16 |
-
Answer:"""
|
|
|
|
| 8 |
|
| 9 |
def build_prompt(context, question):
|
| 10 |
return f"""You are an AI assistant. Use the following context to answer the question.
|
|
|
|
| 11 |
Context:
|
| 12 |
{context}
|
|
|
|
| 13 |
Question: {question}
|
| 14 |
+
Answer:"""
|