Skip to content

feat(python): native RuVector integration for LionAGI memory and tools - #1189

Open
ruvnet wants to merge 1 commit into
mainfrom
feat/python-lionagi-integration
Open

ruvnet wants to merge 1 commit into
mainfrom
feat/python-lionagi-integration

Conversation

@ruvnet

@ruvnet ruvnet commented Oct 11, 2026

Copy link
Copy Markdown
Owner

LionAGI needs a native vector retrieval backend that preserves its Node, MemoryStore and Branch tool contracts without implicitly choosing an embedding provider.

This adds an independently versioned ruvector-lionagi distribution using the published RuVector HNSW SDK, async wrappers, read-only tools, exact pre-ranking metadata filters, bounded JSON snapshots and explicit native failure behavior. It includes runnable offline examples, an animated SVG, an ADR, security boundaries, and reproducible benchmark evidence. The active top-ten portfolio manifest and release supervisor are unchanged.

Validation: 41 tests passed against real LionAGI 0.35.3 and RuVector 0.1.2, with 92% statement coverage. An isolated build produced a wheel from the source distribution; both passed strict Twine checks. All 41 tests and the quickstart passed after replacing the editable install with that wheel. Dependency audit covered 86 installed distributions with zero known advisories; Ruflo deep/all scan reported zero findings. These results do not prove complete security.

Benchmark: 10k synthetic 64-dimensional vectors, 200 independent queries. ef_search=100 measured 95.7% recall@10 at 1.052ms p50; ef_search=200 measured 99.6% at 1.702ms. Exact NumPy was faster on this small dataset. Raw results and limitations are included.

Release workflow builds/tests on Linux, macOS and Windows, audits dependencies, publishes on a matching version tag from main ancestry (or explicit main dispatch), and verifies the exact published version on all three platforms. PyPI publication and cross-platform success are not yet claimed. Remaining scope excludes persistence, provider integration, authentication and production load certification.

…tion

Exercise real Branch tools and MemoryStore against published RuVector, with 41 contract tests, security boundaries, reproducible benchmarks, and gated PyPI release CI.

ruvnet commented Oct 11, 2026

Copy link
Copy Markdown
Owner Author

Per the requested upstream placement, the integration is now also proposed directly in LionAGI: ohdearquant/lionagi#3451. It lives under lionagi.integrations.ruvector with an optional lionagi[ruvector] extra and no dependency on this separate distribution. Upstream validation: 72 focused/regression tests pass, Ruff and Pyright pass, source/wheel builds succeed, and an isolated installed-wheel quickstart passes. Upstream maintainers own review and release. Please avoid independently publishing two evolving implementations; if upstream accepts it, this package should become a compatibility facade or be retired.

This branch has not been deployed

No deployments
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