Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduction
To contribute code to the Pathway project, start by discussing your proposed changes on Discord or by filing an issue.
Once approved, follow the fork + pull request model against the main branch, ensuring you've signed the contributor license agreement.
Context
This PR adds a LEANN output connector (
pw.io.leann.write) to support LEANN vector indices in RAG pipelines. LEANN is a storage-efficient vector database that uses graph-based selective recomputation to achieve 97% storage reduction compared to traditional solutions.As discussed in issue #173, LEANN is implemented as a Python output connector following the established pattern from issue #167. The connector accumulates documents and builds the LEANN index on pipeline completion, with support for both HNSW and DiskANN backends.
How has this been tested?
python/pathway/tests/test_io_leann.py): Test observer behavior including additions, deletions, empty text handling, metadata extraction, and index build logic with mocked LEANN dependencies.integration_tests/leann/test_leann.py): End-to-end tests verifying index creation, search functionality, metadata columns, DiskANN backend, custom text columns, directory creation, and edge cases like empty tables.Types of changes
Checklist: