chore: jarvisChat → cAIc rename, single-node consolidation on jarvis, Qdrant UUID5 + chunk-size deploy fixes
This commit is contained in:
+3
-2
@@ -1,7 +1,8 @@
|
||||
"""JarvisChat routers - /api/ingest terminal command RAG hook."""
|
||||
"""cAIc routers - /api/ingest terminal command RAG hook."""
|
||||
import hashlib
|
||||
import hmac
|
||||
import logging
|
||||
import uuid
|
||||
from datetime import datetime, timezone
|
||||
|
||||
import httpx
|
||||
@@ -53,7 +54,7 @@ async def ingest_content(request: Request):
|
||||
continue
|
||||
vector = embed_resp.json()["embedding"]
|
||||
chunk_hash = hashlib.md5(chunk.encode("utf-8")).hexdigest()[:12]
|
||||
point_id = f"ingest-{source}-{chunk_hash}-{i}"
|
||||
point_id = str(uuid.uuid5(uuid.NAMESPACE_DNS, f"ingest-{source}-{chunk_hash}-{i}"))
|
||||
payload = {"text": encrypt_text(chunk), "source": source, "ingest_date": datetime.now(timezone.utc).isoformat(), "type": "ingest"}
|
||||
payload.update(metadata)
|
||||
upsert_resp = await client.put(
|
||||
|
||||
Reference in New Issue
Block a user