# S3 Vectors Configuration S3_VECTOR_BUCKET_NAME=your-vector-bucket-name S3_VECTOR_INDEX_NAME=rag-index S3_VECTOR_DIMENSION=1024 # Titan V2 embedding dimension S3_VECTOR_DISTANCE_METRIC=cosine # AWS Configuration AWS_REGION=us-east-1 # Optional: Only needed if not using IAM role or AWS CLI credentials # AWS_ACCESS_KEY_ID=your-access-key # AWS_SECRET_ACCESS_KEY=your-secret-key # Bedrock Model Configuration BEDROCK_EMBED_MODEL_ID=amazon.titan-embed-text-v2:0 BEDROCK_LLM_MODEL_ID=us.anthropic.claude-3-5-haiku-20241022-v1:0 # Processing Parameters CHUNK_SIZE=800 CHUNK_OVERLAP=100 TOP_K=6 SIMILARITY_THRESHOLD=0.7 # LLM Generation Configuration MAX_TOKENS=512 TEMPERATURE=0.2 # Data Source Configuration DATA_DIRECTORY=./data # Optional: S3 bucket for document ingestion # S3_BUCKET_NAME=your-s3-bucket # API Configuration API_TITLE=S3 Vectors RAG API API_VERSION=1.0.0 LOG_LEVEL=INFO DEBUG=False # OpenTelemetry Configuration OTEL_ENABLED=true OTEL_SERVICE_NAME=s3-vectors-rag OTEL_ENVIRONMENT=development # For local development, use localhost:4317. For Docker, this is overridden to otel-collector:4317 # OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317 OTEL_EXPORTER_OTLP_INSECURE=true OTEL_METRICS_EXPORT_INTERVAL_MS=60000 OTEL_INSTRUMENT_FASTAPI=true OTEL_CAPTURE_CONTENT=true # Set to true to capture prompts/completions (be mindful of privacy) OTEL_MAX_EVENT_CONTENT_LENGTH=1000 OTEL_CAPTURE_SOURCES=true # Set to true to capture retrieved sources in traces OTEL_MAX_SOURCES_PER_TRACE=10 # Maximum number of sources to record per trace