# config.py import os import sys from pathlib import Path import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) if BASE_DIR not in sys.path: sys.path.insert(0, BASE_DIR) try: import google.colab IN_COLAB = True except ImportError: IN_COLAB = False if IN_COLAB: VECTORSTORE_DIR = Path("/content/drive/MyDrive/bioinformatics_tutor_ai/vectorstore") else: VECTORSTORE_DIR = BASE_DIR / "vectorstore" EMBEDDING_MODEL = "sentence-transformers/all-MiniLM-L6-v2" LLM_MODEL = "BioMistral/BioMistral-7B-DARE" CONFIDENCE_THRESHOLD = 0.65 OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY", None) if not OPENAI_API_KEY: print(" WARNING: OPENAI_API_KEY not set! AutoGen Tutor Agent will not work without it.") if str(BASE_DIR) not in sys.path: sys.path.insert(0, str(BASE_DIR))