Spaces:
Running
Running
Ilyas KHIAT
commited on
Commit
·
2f1d64c
1
Parent(s):
f4f4f04
changed for test reference
Browse files
rag.py
CHANGED
@@ -77,7 +77,7 @@ def generate_stream(query:str,messages = [], model = "gpt-4o-mini", max_tokens =
|
|
77 |
if stream:
|
78 |
return llm_chain.stream({"context":context,"history":messages,"query":query})
|
79 |
else:
|
80 |
-
return
|
81 |
|
82 |
except Exception as e:
|
83 |
print(e)
|
|
|
77 |
if stream:
|
78 |
return llm_chain.stream({"context":context,"history":messages,"query":query})
|
79 |
else:
|
80 |
+
return llm.invoke(query)
|
81 |
|
82 |
except Exception as e:
|
83 |
print(e)
|