Upload pipelines.py
#5
by
nolanzandi
- opened
- 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')
|