Update agent.py
Browse files
agent.py
CHANGED
@@ -295,9 +295,9 @@ def read_and_parse_fn(input_path: str):
|
|
295 |
"""Function compatible avec QueryPipeline"""
|
296 |
return read_and_parse_content(input_path)
|
297 |
|
298 |
-
def create_rag_fn(documents):
|
299 |
"""Function compatible avec QueryPipeline"""
|
300 |
-
return create_rag_tool(documents)
|
301 |
|
302 |
# Créer le pipeline avec FnComponent
|
303 |
def create_forced_rag_pipeline():
|
|
|
295 |
"""Function compatible avec QueryPipeline"""
|
296 |
return read_and_parse_content(input_path)
|
297 |
|
298 |
+
def create_rag_fn(documents, query = None):
|
299 |
"""Function compatible avec QueryPipeline"""
|
300 |
+
return create_rag_tool(documents, query)
|
301 |
|
302 |
# Créer le pipeline avec FnComponent
|
303 |
def create_forced_rag_pipeline():
|