Optional Milvus backend for vector / keyword retrieval on large memory banks
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
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
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vectorize-io/hindsight
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vectorize-io/hindsight#7254 ·
-
Control Plane shows different calendar dates for the same occurrence in Constellation and TimelineOpencore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
vectorize-io/hindsight#7240 · 1 comment ·
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vectorize-io/hindsight#7233 ·
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
vectorize-io/hindsight#7231 ·
-
core
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
vectorize-io/hindsight#7228 · 1 comment ·
All issues in vectorize-io/hindsight
Similar issues
-
Test: to_hijri() accepts datetime.datetime and uses only the date partPossibly taken A pull request linked to this issue is open or already merged. Opengood first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 · 3 comments ·
Maintainers usually reply within 1 day
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scoresPossibly taken @AshutoshSingh840 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
UKGovernmentBEIS/control-arena#992 ·
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
mvalentsev/awesome-free-ai-coding#70 ·
Maintainers usually reply within 1 day