You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# prompt = f"""You are an assistant for question-answering tasks. Use the following pieces of retrieved context to answer the question. If you don't know the answer, just say you that don't know. Use three sentences maximum and keep the answer coincise.
343
+
prompt=f"""Answer the question based only on the following documents.
344
+
Answer with the summary of the documents provided.
345
+
Do **NOT** include any introductory phrases, titles, or prefixes such as "Answer:", "The answer is:", "Final Answer:", or "Based on the context,". Start your response with the answer itself:
346
+
347
+
{context}
348
+
349
+
{query}
350
+
"""
351
+
352
+
print("---\n", prompt)
353
+
print(
354
+
"token count:",
355
+
self._conn.execute(
356
+
"SELECT llm_token_count(?) AS token_count;", (prompt,)
0 commit comments