Skip to content

Fix adding and removing documents after a restart - #11

Merged
sklsp merged 8 commits into
mainfrom
fix/rag-restart
Oct 26, 2026
Merged

sklsp merged 8 commits into
mainfrom
fix/rag-restart

Conversation

@sklsp

@sklsp sklsp commented Oct 26, 2026

Copy link
Copy Markdown
Owner

After a restart the vector store loaded the FAISS index but left the per-chunk embeddings empty, so remove_by_doc_id failed and add() went out of sync.

  • Rebuild the embeddings from the FAISS index (reconstruct_n) before add and remove
  • Restart tests: remove, add, two restart cycles, every public method
  • CHANGELOG and README test count (878 tests)

Local gates: ruff, mypy, pytest (878 passed).

🤖 Generated with Claude Code

sklsp added 8 commits October 26, 2026 10:09
867 passed, 1 xfailed, 1 warning in 99.14s (0:01:39)
869 passed, 1 warning in 98.12s (0:01:38)
870 passed, 1 warning in 99.00s (0:01:38)
871 passed, 1 warning in 99.07s (0:01:39)
878 passed, 1 warning in 108.66s (0:01:48)
878 passed, 1 warning in 99.42s (0:01:39)
878 passed, 1 warning in 99.12s (0:01:39)
@sklsp
sklsp merged commit e699556 into main Oct 26, 2026
4 checks passed
@sklsp
sklsp deleted the fix/rag-restart branch November 24, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant