RAG 기억 검색에 하이브리드 검색(벡터+키워드) + 재랭킹 추가
Chroma 벡터검색만으로는 IP·모델명 같은 정확한 용어를 놓치는 경우가 있어 SQLite FTS5(trigram) 키워드검색을 병합하고, 애매한 경우(예: 클로서버 vs 지서버 GPU 스펙 혼동)만 LLM 재랭킹으로 오답을 걸러내도록 함. 재랭킹은 후보가 없거나 확실한 단일매치일 때는 건너뛰어 대부분의 대화에서는 지연시간 증가가 거의 없음. 기존 570개 기록은 scripts/backfill-fts.ts로 백필. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,10 @@
|
||||
.smallclaw/databases/*.db.bak.*
|
||||
.smallclaw/databases/nohup.out
|
||||
|
||||
# Derived FTS mirror of Chroma vector-memory data (rag-hybrid-search upgrade) — fully
|
||||
# regenerable via scripts/backfill-fts.ts, not source-of-truth data.
|
||||
.smallclaw/databases/rag_fts.db
|
||||
|
||||
# --- PYTHON CACHE ---
|
||||
scripts/__pycache__/
|
||||
**/__pycache__/
|
||||
|
||||
Reference in New Issue
Block a user