Spaces:
Sleeping
Sleeping
cdupland
commited on
Commit
·
22c6fdf
1
Parent(s):
17f34a2
Remove commented-out code for knowledge base update in response generation
Browse files
rag.py
CHANGED
@@ -209,8 +209,8 @@ def generate_response_via_langchain(query: str, stream: bool = False, model: str
|
|
209 |
|
210 |
|
211 |
#handle_calling_add_to_knowledge_base(prompt.format(context=context,messages=messages,query=query,style=style,tonality=tonality,enterprise=enterprise_name))
|
212 |
-
if handle_calling_add_to_knowledge_base(query,enterprise_id,index,enterprise_name):
|
213 |
-
|
214 |
|
215 |
language = detect_language(query)
|
216 |
template += f" Reponds en {language}"
|
|
|
209 |
|
210 |
|
211 |
#handle_calling_add_to_knowledge_base(prompt.format(context=context,messages=messages,query=query,style=style,tonality=tonality,enterprise=enterprise_name))
|
212 |
+
# if handle_calling_add_to_knowledge_base(query,enterprise_id,index,enterprise_name):
|
213 |
+
# template += " la base de connaissance a été mise à jour"
|
214 |
|
215 |
language = detect_language(query)
|
216 |
template += f" Reponds en {language}"
|