fix issue with question generation refactor
#27
by
nolanzandi
- opened
functions/chat_functions.py
CHANGED
@@ -14,7 +14,10 @@ def example_question_generator(session_hash):
|
|
14 |
"You are a helpful and knowledgeable agent who has access to an SQLite database which has a table called 'data_source'."
|
15 |
)
|
16 |
]
|
17 |
-
|
|
|
|
|
|
|
18 |
connection = sqlite3.connect(f'{dir_path}/data_source.db')
|
19 |
print("Querying questions");
|
20 |
cur=connection.execute('select * from data_source')
|
|
|
14 |
"You are a helpful and knowledgeable agent who has access to an SQLite database which has a table called 'data_source'."
|
15 |
)
|
16 |
]
|
17 |
+
|
18 |
+
session_path = 'file_upload'
|
19 |
+
|
20 |
+
dir_path = TEMP_DIR / str(session_hash) / str(session_path)
|
21 |
connection = sqlite3.connect(f'{dir_path}/data_source.db')
|
22 |
print("Querying questions");
|
23 |
cur=connection.execute('select * from data_source')
|