diff --git a/.env.example b/.env.example index 0501b201..237f0f06 100644 --- a/.env.example +++ b/.env.example @@ -6,13 +6,13 @@ LLM_MODEL = "gpt-4-turbo-preview" # All of our SQL generation agents are using different tools to generate SQL queries, in order to limit the number of times that agents can # use different tools you can set the "AGENT_MAX_ITERATIONS" env variable. By default it is set to 20 iterations. - +AGENT_MAX_ITERATIONS = 15 #timeout in seconds for the engine to return a response. Defaults to 150 seconds -DH_ENGINE_TIMEOUT = +DH_ENGINE_TIMEOUT = 150 #tmeout for SQL execution, our agents exceute the SQL query to recover from errors, this is the timeout for that execution. Defaults to 30 seconds SQL_EXECUTION_TIMEOUT = #The upper limit on number of rows returned from the query engine (equivalent to using LIMIT N in PostgreSQL/MySQL/SQlite). Defauls to 50 -UPPER_LIMIT_QUERY_RETURN_ROWS = +UPPER_LIMIT_QUERY_RETURN_ROWS = 50 #Encryption key for storing DB connection data in Mongo ENCRYPT_KEY = diff --git a/README.md b/README.md index cd597d6f..a1526505 100644 --- a/README.md +++ b/README.md @@ -82,9 +82,9 @@ ORG_ID = ENCRYPT_KEY = # the variable that determines how many rows should be returned from a query to the agents, set it to small values to avoid high costs and long response times, default is 50 -UPPER_LIMIT_QUERY_RETURN_ROWS = +UPPER_LIMIT_QUERY_RETURN_ROWS = 50 # the variable that force the engine to quit if the sql geneation takes more than the time set in this variable, default is None. -DH_ENGINE_TIMEOUT = +DH_ENGINE_TIMEOUT = 150 ``` While not strictly required, we also strongly suggest you change the MONGO username and password fields as well. diff --git a/docs/envars.rst b/docs/envars.rst index efdd9331..d15252b2 100644 --- a/docs/envars.rst +++ b/docs/envars.rst @@ -40,8 +40,9 @@ provided in the .env.example file with the default values. ONLY_STORE_CSV_FILES_LOCALLY = - DH_ENGINE_TIMEOUT = - UPPER_LIMIT_QUERY_RETURN_ROWS = + AGENT_MAX_ITERATIONS = 15 + DH_ENGINE_TIMEOUT = 150 + UPPER_LIMIT_QUERY_RETURN_ROWS = 50 .. csv-table::