CoolFace
Apppublic

salim0986/graph-bug-ai

sourceHugging Facemitupdated 4mo agoView on Hugging Face
0likes
config.py41 linesDownload Raw Back to src
1import os2from pathlib import Path3from typing import Set4 5# Load environment variables from .env file6try:7    from dotenv import load_dotenv8    load_dotenv()9except ImportError:10    # dotenv not installed, use environment variables directly11    pass12 13# Neo4j Configuration14NEO4J_URI = os.getenv("NEO4J_URI", "neo4j://neo4j:7687")15NEO4J_USER = os.getenv("NEO4J_USER", "neo4j")16NEO4J_PASSWORD = os.getenv("NEO4J_PASSWORD", "graphbug123")17 18# Qdrant Configuration19QDRANT_URL = os.getenv("QDRANT_URL", "http://qdrant:6333")20QDRANT_API_KEY = os.getenv("QDRANT_API_KEY")  # Optional, for Qdrant Cloud21 22# Embedding Model23EMBEDDING_MODEL = os.getenv("EMBEDDING_MODEL", "all-MiniLM-L6-v2")24 25# Application Settings26TEMP_REPOS_DIR = os.getenv("TEMP_REPOS_DIR", "./temp_repos")27LOG_LEVEL = os.getenv("LOG_LEVEL", "INFO")28 29# Directories to ignore during repository scanning30IGNORE_DIRS: Set[str] = {31    ".git", ".github", ".vscode", ".idea",32    "node_modules", "venv", "env", "ENV",33    "dist", "build", "out", "target", "bin", "obj",34    "__pycache__", "coverage", "tmp", "temp", 35    "migrations", "vendor", ".next", ".nuxt",36    "bower_components", "jspm_packages"37}38 39# Ensure temp repos directory exists40Path(TEMP_REPOS_DIR).mkdir(parents=True, exist_ok=True)41