Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -235,7 +235,7 @@ def create_assistant_suche(prompt):
|
|
235 |
#global client, general_assistant_suche
|
236 |
|
237 |
retriever = TavilySearchAPIRetriever(k=4)
|
238 |
-
result = retriever.invoke(prompt)
|
239 |
erg = "Aus dem Internet: " + result[0].page_content + ".\n Quelle: "
|
240 |
src = result[0].metadata['source']
|
241 |
|
|
|
235 |
#global client, general_assistant_suche
|
236 |
|
237 |
retriever = TavilySearchAPIRetriever(k=4)
|
238 |
+
result = retriever.invoke(template + prompt)
|
239 |
erg = "Aus dem Internet: " + result[0].page_content + ".\n Quelle: "
|
240 |
src = result[0].metadata['source']
|
241 |
|