Spaces:
Sleeping
Sleeping
| # .env.example - Copy to .env and fill in your values | |
| # --- Core Settings --- | |
| PROJECT_NAME="Chatbot Backend V2" | |
| API_V2_PREFIX="/api/v2" # Prefix for V2 routes | |
| # --- Database (PostgreSQL for Chat History/Sessions) --- | |
| # Example: postgresql+psycopg2://user:password@host:port/dbname | |
| DATABASE_URL=postgresql+psycopg2://postgres:password@localhost:5432/chatbot_v2_db | |
| # --- Neo4j (If needed for content loading) --- | |
| # NEO4J_URI=bolt://localhost:7687 | |
| # NEO4J_USERNAME=neo4j | |
| # NEO4J_PASSWORD=your_neo4j_password | |
| # --- OpenAI --- | |
| OPENAI_API_KEY="your_openai_api_key_here" | |
| OPENAI_MODEL_NAME="gpt-4-turbo" # Or your preferred model | |
| # --- GNN Embeddings --- | |
| # Path relative to the project root | |
| GNN_EMBEDDINGS_NPZ_PATH="data/final_gnn_embeddings.npz" | |
| # --- Sentence Transformer (for Query Encoding) --- | |
| # Decide on the model name | |
| QUERY_ENCODER_MODEL_NAME="all-MiniLM-L6-v2" | |
| # --- CORS Origins --- | |
| # Comma-separated list of allowed origins (e.g., http://localhost:3000,https://your-frontend.com) | |
| BACKEND_CORS_ORIGINS="http://localhost:5173,http://127.0.0.1:5173" # Example for Vite default |