nolanzandi commited on
Commit
82636e0
·
verified ·
1 Parent(s): c2276e3

Upload sqlite_functions.py

Browse files
Files changed (1) hide show
  1. functions/sqlite_functions.py +1 -1
functions/sqlite_functions.py CHANGED
@@ -33,7 +33,7 @@ def sqlite_query_func(queries: List[str], session_hash):
33
  sql_query = SQLiteQuery(f'{dir_path}/data_source.db')
34
  try:
35
  result = sql_query.run(queries, session_hash)
36
- if len(result["results"][0]) > 500:
37
  print("QUERY TOO LARGE")
38
  return {"reply": "query result too large to be processed by llm, the query results are in our query.csv file"}
39
  else:
 
33
  sql_query = SQLiteQuery(f'{dir_path}/data_source.db')
34
  try:
35
  result = sql_query.run(queries, session_hash)
36
+ if len(result["results"][0]) > 1000:
37
  print("QUERY TOO LARGE")
38
  return {"reply": "query result too large to be processed by llm, the query results are in our query.csv file"}
39
  else: