feat: Add CLI support for updating existing indices#184
feat: Add CLI support for updating existing indices#184mark-hingston wants to merge 2 commits intoyichuan-w:mainfrom
Conversation
|
Thanks, it is a great PR we will review it later. BTW, is that for recompute or not? |
|
I guess there might be some risk in merging this, because this feature is still in meta-version. Have you tried on a real workload, and I am not sure if that is actually work? |
Thanks for the review. Yes, the update command respects the original index's I haven't tested a real/prod workload. |
|
@mark-hingston Would you be able to test it and let us know how it works, would be good to see the workflow run |
|
@mark-hingston please let us know any updates on the testing! would need to resolve some merge conflicts if all works well on this |
|
Friendly ping - any updates on testing this with a real workload? We'd like to move forward but need to verify it works reliably before merging. |
What does this PR do?
Summary
leann updateCLI command that allows users to incrementally add new documents to existing HNSW indices without rebuilding from scratchChanges
updatesubcommand with support for multiple document paths, chunking options, file type filters, and AST chunkingtest_cli_update.py) covering argument parsing, chunking options, file filters, and default valuesUsage Example
Add new documents to existing index
leann update my-docs --docs ./new-documents
Add with custom chunking
leann update my-code --docs ./new-src --file-types .py,.js
Notes
Related Issues
Fixes #
Checklist
uv run pytest)ruff formatandruff check)pre-commit run --all-files)