Environment Variables

Environment Variables#

The Dataherald engine has a number of environment variables that need to be set in order for it to work. The following is the sample provided in the .env.example file with the default values.

OPENAI_API_KEY =
ORG_ID =


GOLDEN_RECORD_COLLECTION = 'my-golden-records'
PINECONE_API_KEY =
PINECONE_ENVIRONMENT =

ASTRA_DB_API_ENDPOINT =
ASTRA_DB_APPLICATION_TOKEN =


API_SERVER = "dataherald.api.fastapi.FastAPI"
SQL_GENERATOR = "dataherald.sql_generator.dataherald_sqlagent.DataheraldSQLAgent"
EVALUATOR = "dataherald.eval.simple_evaluator.SimpleEvaluator"
DB = "dataherald.db.mongo.MongoDB"
VECTOR_STORE = 'dataherald.vector_store.chroma.Chroma'
CONTEXT_STORE = 'dataherald.context_store.default.DefaultContextStore'
DB_SCANNER = 'dataherald.db_scanner.sqlalchemy.SqlAlchemyScanner'


MONGODB_URI = "mongodb://admin:admin@mongodb:27017"
MONGODB_DB_NAME = 'dataherald'
MONGODB_DB_USERNAME = 'admin'
MONGODB_DB_PASSWORD = 'admin'

ENCRYPT_KEY =

S3_AWS_ACCESS_KEY_ID =
S3_AWS_SECRET_ACCESS_KEY =

ONLY_STORE_CSV_FILES_LOCALLY =

AGENT_MAX_ITERATIONS = 15
DH_ENGINE_TIMEOUT = 150
UPPER_LIMIT_QUERY_RETURN_ROWS = 50