Upload pipelines.py (#5)
Browse files- Upload pipelines.py (fde74298f0d349fc2b96422de936f30c2323fd23)
- pipelines/pipelines.py +1 -1
pipelines/pipelines.py
CHANGED
@@ -21,7 +21,7 @@ from haystack.components.builders import PromptBuilder
|
|
21 |
from haystack.components.generators import OpenAIGenerator
|
22 |
|
23 |
llm = OpenAIGenerator(model="gpt-4o")
|
24 |
-
def rag_pipeline_func(queries: str,
|
25 |
sql_query = SQLiteQuery(f'data_source_{session_hash}.db')
|
26 |
|
27 |
connection = sqlite3.connect(f'data_source_{session_hash}.db')
|
|
|
21 |
from haystack.components.generators import OpenAIGenerator
|
22 |
|
23 |
llm = OpenAIGenerator(model="gpt-4o")
|
24 |
+
def rag_pipeline_func(queries: str, session_hash):
|
25 |
sql_query = SQLiteQuery(f'data_source_{session_hash}.db')
|
26 |
|
27 |
connection = sqlite3.connect(f'data_source_{session_hash}.db')
|