forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to tests/unit/test_index.pyClear filter

2026-09-17

feat(rag): 🏫 okul istek bazlı kiracılık — korpus anahtarı, store süzgeci, hab/2 okul eko'suAhmet Kaan Gümüş · b2ba173
feat(rag): 🏫 okul istek bazlı kiracılık — korpus anahtarı, store süzgeci, hab/2 okul eko'su

- guard/tenant.py: okul değeri doğrulaması; okul-scoped ya da hiç (paylaşılan
  'public' boyutu YOK, damgasız satır taşınmaz ve erişilemez).
- CorpusKey artık (okul, sınıf, ders): iki okulun aynı dersi birbirini ezemez;
  resolve() okulsuz isteği school_required ile reddeder.
- Store okulla kapsanır: dense payload'ı + BM25/sparse satır damgası zorunlu,
  aramalar okur okuluna TAM eşitlikle süzülür (kırpma değil süzgeç).
- build_service/ensure yazma damgasını ZORUNLU kılar; tek-korpus modu okulu
  BOOK_PATH düzeninden okur (multi.school_from_book_path).
- Cevap cache anahtarına school eklendi (iki okul aynı soruda hit paylaşamaz).
- hab/2 giriş çerçevesi (BridgeRequest/BridgeResponse) + transport-bağımsız
  Dispatcher: okul çerçevede zorunlu, cevapta aynen eko; rag.chat/chat.reply
  eşlemesi (asker_role -> role); rag.index tipli reddedilir (taşıma yok).
- Testler: okul A okul B'nin chunk'ını göremez (store + registry + çerçeve),
  30 yeni test; süit 1278 yeşil.

2026-09-04

feat(index): Qdrant dense (gomulu) + BM25 lexical koksuz (Faz 1.3)Kadir Yönak · ec78e91
feat(index): Qdrant dense (gomulu) + BM25 lexical koksuz (Faz 1.3)

- DenseIndex: Qdrant gomulu yerel (in-memory/path), cosine, query_points; exact_topk
  referans (brute-force cosine).
- BM25Index: rank_bm25, TR-normalize (fold_for_match), koksuz tokenizasyon; bos
  belge placeholder.
- Kabul: ANN recall@20 = 1.0000 (exact'e karsi, >=0.995); 258 chunk, dense arama
  3.04 ms, BM25 0.43 ms, depo 1.06 MB.
- Test: 6 birim (sentetik recall + TR BM25) + 4 integration (gercek 12-bio).