Dateien nach "app" hochladen
Deploy mindnet to llm-node / deploy (push) Successful in 5s

This commit is contained in:
Lars committed 2025-09-02 10:19:42 +02:00
1 parent 3d4a54b783
commit a58856fa00
4 files changed
+60

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
from __future__ import annotations
import os
from functools import lru_cache
class Settings:
# Qdrant
QDRANT_URL: str = os.getenv("QDRANT_URL", "http://127.0.0.1:6333")
QDRANT_API_KEY: str | None = os.getenv("QDRANT_API_KEY")
COLLECTION_PREFIX: str = os.getenv("MINDNET_PREFIX", "mindnet")
VECTOR_SIZE: int = int(os.getenv("MINDNET_VECTOR_SIZE", "384"))
DISTANCE: str = os.getenv("MINDNET_DISTANCE", "Cosine")
# Embeddings
MODEL_NAME: str = os.getenv("MINDNET_MODEL", "sentence-transformers/all-MiniLM-L6-v2")
# API
DEBUG: bool = os.getenv("DEBUG", "false").lower() == "true"
@lru_cache
def get_settings() -> Settings:
return Settings()