RAG-POC/.env.example

47 lines
1.8 KiB
Plaintext

# Storage. Replace the host, user, password, and database for each environment.
POSTGRES_PASSWORD=knowledgegraph-dev
POSTGRES_PORT=5432
API_PORT=8080
DATABASE_URL=postgresql+psycopg://knowledgegraph_app:knowledgegraph-dev@localhost:5432/knowledgegraph
SOURCE_DATABASE_URL=
SOURCE_TABLE_NAME=external_documents
ANALYTICS_DATABASE_URL=
AUTO_CREATE_SCHEMA=false
# External handoff and corpus.
CORPUS_NAME=product-knowledge
# Runtime model templates. JSON files passed with --model-file override these values.
ENTITY_TYPES=Person,Organization,Product,Concept,Event,Location
RELATIONSHIP_TYPES=AFFILIATED_WITH,CREATED,DEPENDS_ON,MENTIONS,PART_OF,RELATED_TO
NODE_TEMPLATE={"canonical_name":"string","entity_type":"one configured entity type","description":"source-grounded string","aliases":["string"]}
EDGE_TEMPLATE={"source":"entity name","target":"entity name","relationship_type":"one configured relationship type","description":"source-grounded string"}
EXTRACTION_INSTRUCTIONS=Extract only entities and relationships explicitly supported by the supplied text.
# OpenAI-compatible chat and embedding provider.
LLM_BASE_URL=https://api.openai.com/v1
LLM_API_KEY=replace-with-provider-key
LLM_CHAT_MODEL=gpt-4.1-mini
LLM_EMBEDDING_MODEL=text-embedding-3-small
LLM_EMBEDDING_DIMENSIONS=1536
LLM_TIMEOUT_SECONDS=60
LLM_MAX_RETRIES=4
LLM_RETRY_INITIAL_SECONDS=1
LLM_RETRY_MAX_SECONDS=30
# Processing and retrieval.
CHUNK_SIZE=1200
CHUNK_OVERLAP=150
COMMUNITY_RESOLUTION=1.0
RETRIEVAL_TOP_K=8
RETRIEVAL_GRAPH_HOPS=2
RETRIEVAL_GRAPH_LIMIT=50
RETRIEVAL_HNSW_EF_SEARCH=100
LOG_LEVEL=INFO
INTERNAL_JWT_SECRET=replace-with-a-dev-test-secret-at-least-32-bytes
INTERNAL_JWT_ISSUER=knowledgegraph-bff
INTERNAL_JWT_AUDIENCE=knowledgegraph-service
INTERNAL_FEATURE_NAME=KnowledgeGraph
WORKER_POLL_SECONDS=2
WORKER_STALE_RUN_SECONDS=3600
ARTIFACT_DIR=artifacts