chore: jarvisChat → cAIc rename, single-node consolidation on jarvis, Qdrant UUID5 + chunk-size deploy fixes

This commit is contained in:
2026-08-08 09:56:39 -07:00
parent 44387919a8
commit e14ae2bd19
28 changed files with 72 additions and 48 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ cAIc - RAG pipeline: Qdrant vector search + system prompt assembly.
import asyncio
import logging
import os
import uuid
from datetime import datetime, timezone
import httpx
@@ -45,7 +46,7 @@ async def _upsert_fact(fact: str, text: str, topic: str,
if er.status_code != 200:
continue
vector = er.json()["embedding"]
pid = f"auto-{ts}-{i}"
pid = str(uuid.uuid5(uuid.NAMESPACE_DNS, f"auto-{ts}-{i}"))
payload = {
"text": encrypt_text(chunk), "source": "auto_fact", "fact": fact,
"ingest_date": datetime.now(timezone.utc).isoformat(),
@@ -124,7 +125,7 @@ async def confirm_fact_update(memory_id: int, old_fact: str, new_fact: str,
return True
def chunk_text(text: str, chunk_size: int = 512, overlap: int = 128) -> list:
def chunk_text(text: str, chunk_size: int = 200, overlap: int = 64) -> list:
words = text.split()
target_words = int(chunk_size / 1.3)
overlap_words = int(overlap / 1.3)