lllin000_PaperForge/paperforge/memory
LLLin000 d24c78c5dc feat(#27 #28 #29 #30 #32): migrate write/read/status/build_state from ChromaDB to sqlite-vec
#27: write_encoded_payload and delete_paper_vectors use sqlite-vec
  - builder.py: writes to vec0 tables + companion meta tables
  - _chroma.py: delete_paper_vectors deletes from vec0 + meta by paper_id
  - Stores body_units_hash, object_units_hash, retrieval_policy_version in meta tables

#28: merge_retrieve and retrieve_chunks use vec0 k-NN search
  - search.py: vec0 k-NN queries with companion meta JOINs
  - Same dedup/per-paper-cap logic, same result shapes

#29: build_state migrated from JSON file to SQLite build_state table

#30: E2E embed+retrieve test with sqlite-vec + FixedProvider
  - 3 tests: body roundtrip, source correctness, per-paper cap

#32: E2E OCR pipeline test with fixture PDFs

Additional changes:
- schema.py: bump to v6, add hash/policy columns to vec companion meta tables
- embed.py: _assert_collections_healthy uses sqlite-vec; resume hash checks read from meta tables
- status.py: chunk counts from SQL COUNT on companion tables
- Removed unused get_collection/embed_paper imports from embed.py
- All tests updated: 76 pass (was 72, +4 new E2E tests, +4 for migration)
- FixedFixedProvider to generate 1536-dim vectors (matching vec0 schema)
- Fixed health check tests for sqlite-vec path
2026-07-09 17:52:45 +08:00
..
__init__.py chore: commit session work before hotfix switch 2026-05-18 22:47:30 +08:00
_columns.py chore: commit session work before hotfix switch 2026-05-18 22:47:30 +08:00
builder.py fix: token cap recursive split + policy version check + test plan update 2026-07-06 17:05:13 +08:00
chunker.py fix: add missing chunker module; restore deleted vector_db.py 2026-05-15 21:27:22 +08:00
CONTEXT.md docs: design Layer 4 retrieval substrate 2026-07-05 02:05:27 +08:00
context.py feat(memory): add agent context query module 2026-05-12 19:55:58 +08:00
db.py feat(#27 #28 #29 #30 #32): migrate write/read/status/build_state from ChromaDB to sqlite-vec 2026-07-09 17:52:45 +08:00
events.py fix: import_reading_log to JSONL, correction JSONL-first, events.py wrapper 2026-05-14 22:37:55 +08:00
fts.py fix: improve search accuracy with multi-token LIKE and guided agent search queries 2026-05-25 16:42:11 +08:00
permanent.py chore: commit session work before hotfix switch 2026-05-18 22:47:30 +08:00
query.py feat: make paper lookup decomposed and coverage-scored 2026-07-05 14:14:03 +08:00
refresh.py fix: refresh_paper FTS delete-before-upsert, import error checking 2026-05-14 22:47:48 +08:00
runtime_health.py chore: commit session work before hotfix switch 2026-05-18 22:47:30 +08:00
schema.py feat(#27 #28 #29 #30 #32): migrate write/read/status/build_state from ChromaDB to sqlite-vec 2026-07-09 17:52:45 +08:00
state_snapshot.py feat: PR 8 — Object Vector Retrieval (paperforge_objects collection) 2026-07-06 19:58:46 +08:00
vector_db.py chore: commit session work before hotfix switch 2026-05-18 22:47:30 +08:00