minh-4T commited on
Commit
c712e9a
·
1 Parent(s): cb01350

fix config.collectionName

Browse files
core/config.py CHANGED
@@ -65,7 +65,7 @@ SUPABASE_SYNC_ENABLED = bool(SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY and SUPA
65
  SUPABASE_SYNC_ALLOWED_IPS = [ip.strip() for ip in os.getenv('SUPABASE_SYNC_ALLOWED_IPS', '').split(',') if ip.strip()]
66
  SUPABASE_SYNC_ALLOW_PRIVATE_NETWORK = os.getenv('SUPABASE_SYNC_ALLOW_PRIVATE_NETWORK', 'true').strip().lower() in {'1', 'true', 'yes', 'on'}
67
  COLLECTION_ROUTER_TOP_N = _bounded_int_from_env('COLLECTION_ROUTER_TOP_N', 3, 1, 20)
68
-
69
  # - Context and output limits
70
  MAX_CONTEXT_CHARS = int(os.getenv('MAX_CONTEXT_CHARS', '12000'))
71
  MAX_OUT_CHARS = int(os.getenv('MAX_OUT_CHARS', '3000'))
 
65
  SUPABASE_SYNC_ALLOWED_IPS = [ip.strip() for ip in os.getenv('SUPABASE_SYNC_ALLOWED_IPS', '').split(',') if ip.strip()]
66
  SUPABASE_SYNC_ALLOW_PRIVATE_NETWORK = os.getenv('SUPABASE_SYNC_ALLOW_PRIVATE_NETWORK', 'true').strip().lower() in {'1', 'true', 'yes', 'on'}
67
  COLLECTION_ROUTER_TOP_N = _bounded_int_from_env('COLLECTION_ROUTER_TOP_N', 3, 1, 20)
68
+ QDRANT_COLLECTION = os.getenv('QDRANT_COLLECTION', 'rag_docs')
69
  # - Context and output limits
70
  MAX_CONTEXT_CHARS = int(os.getenv('MAX_CONTEXT_CHARS', '12000'))
71
  MAX_OUT_CHARS = int(os.getenv('MAX_OUT_CHARS', '3000'))
services/document_ingest_service.py CHANGED
@@ -17,7 +17,7 @@ from qdrant_client.models import (
17
  )
18
 
19
  from rag.chunking import smart_chunking
20
- from core.config import QDRANT_API_KEY, QDRANT_COLLECTION, QDRANT_URL
21
  from database.document_db import Document, DocumentChunk, SessionLocal
22
  from rag.models import embeddings
23
  from utils.text_utils import clean_text
 
17
  )
18
 
19
  from rag.chunking import smart_chunking
20
+ from core.config import QDRANT_API_KEY, QDRANT_URL
21
  from database.document_db import Document, DocumentChunk, SessionLocal
22
  from rag.models import embeddings
23
  from utils.text_utils import clean_text