Optional Milvus backend for vector / keyword retrieval on large memory banks

Open
#7,245 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
postgresql, python
Domain
backend, databases

Research direction

Start by reading the existing retrieval backend interface and the code that connects Postgres indexes to semantic and keyword recall; the issue does not name specific files or tests. Then assess how embeddings and optional BM25 data could be mirrored to Milvus while Postgres remains the source of truth. Done would mean an agreed design and working opt-in configuration with tests and benchmarks.

Written by the indexing model from the issue text.

Description

core
Use Case

Disclosure: I'm a Milvus community contributor (Milvus Community Ambassador), so I'm biased — but I'm also a Hindsight user and I've read your posts on why Postgres is the default.

I'm building agents for enterprise customers who already run Milvus as their shared retrieval infrastructure. Some memory banks will grow to millions of memories across many tenants.

Problem Statement

Today the vector index has to be one of the Postgres extensions (pgvector, vchord, pgvectorscale, scann). That's a great default, and I agree with the "no second stateful service" argument for most teams. But teams that already operate Milvus have to run and tune a separate vector stack just for memory. Your memlake post also notes that keyword search and recall get expensive on very large banks.

Suggestion: an opt-in retrieval backend, off by default. Postgres stays the source of truth (facts, entities, graph, temporal data), and embeddings, plus optionally BM25 full-text, which Milvus supports natively, are mirrored into Milvus for the semantic and keyword recall legs. It could be configured with something like HINDSIGHT_API_VECTOR_BACKEND=milvus.

If this fits your roadmap, I'm happy to help with a PR, tests and benchmarks, following whatever interface you prefer. If it doesn't fit, that's totally fine too; I'd just appreciate knowing.

How This Feature Would Help

Teams that already run Milvus could reuse their existing cluster for Hindsight's semantic and keyword recall instead of operating and tuning a separate vector stack just for memory. Large, multi-tenant banks could scale retrieval independently of Postgres, while Postgres stays the default and the source of truth, so nothing changes for everyone else.

Proposed Solution

No response

Alternatives Considered

No response

Priority

Nice to have

Additional Context

No response

Checklist
  • I would be willing to contribute this feature
Dominant language
Python
Stars
45.2k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vectorize-io/hindsight

All issues in vectorize-io/hindsight

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.