Spaces:
Sleeping
Sleeping
Update queryrun.py
Browse files- queryrun.py +1 -2
queryrun.py
CHANGED
@@ -345,8 +345,7 @@ class FAISSQuerySystem:
|
|
345 |
model="command-r-plus",
|
346 |
temperature=0.3,
|
347 |
prompt_truncation='AUTO',
|
348 |
-
|
349 |
-
context="You are an expert AI assistant. Answer the user's question based *only* on the provided document snippets. Cite the source document number (e.g., [Document 1]) when using information from it. If the answer isn't in the documents, state that clearly." # Changed to 'context' instead of 'system_prompt'
|
350 |
)
|
351 |
return self.stream_chat_completions(response.text)
|
352 |
except Exception as e:
|
|
|
345 |
model="command-r-plus",
|
346 |
temperature=0.3,
|
347 |
prompt_truncation='AUTO',
|
348 |
+
preamble="You are an expert AI assistant. Answer the user's question based *only* on the provided document snippets. Cite the source document number (e.g., [Document 1]) when using information from it. If the answer isn't in the documents, state that clearly."
|
|
|
349 |
)
|
350 |
return self.stream_chat_completions(response.text)
|
351 |
except Exception as e:
|