Skip to content

Environment Variables

For development, we recommend using a '.env' file in the root of your project to manage environment variables for ragpill. This allows you to easily configure settings for components like LLMJudge and MLFlow without hardcoding sensitive information in your code.

This file is automatically loaded by pydantic-settings in the LLMJudgeSettings and MLFlowSettings classes.

Settings Classes

MLFlowSettings

ragpill.settings.MLFlowSettings

Bases: BaseSettings

LLMJudgeSettings

ragpill.settings.LLMJudgeSettings

Bases: BaseSettings

All settings related to LLMJudge evaluator.

Example .env File

Here's a complete example .env file:

# MLFlow Configuration
EVAL_MLFLOW_TRACKING_URI=http://localhost:5000
EVAL_MLFLOW_EXPERIMENT_NAME=my_project_evaluation
EVAL_MLFLOW_RUN_DESCRIPTION="Testing new prompts"
EVAL_MLFLOW_TRACKING_USERNAME=your-username
EVAL_MLFLOW_TRACKING_PASSWORD=your-password

# LLMJudge Configuration
RAGPILL_LLMJUDGE_MODEL_NAME=gpt-4o
RAGPILL_LLMJUDGE_TEMPERATURE=0.0
RAGPILL_LLMJUDGE_BASE_URL=https://my_domain.com/v1
RAGPILL_LLMJUDGE_API_KEY=your-actual-api-key-here