Me

Memora – A Vector DB with Multistage Reranking

Hacker News

Memora – A Vector DB with Multistage Reranking

Hey HN, Matusa here! A friend and I have built Memora. Memora is a vector database with built-in multistage reranking, which can significantly improve search accuracy over semantic search. It also features a proprietary embedding model tailored for RAG use cases — where there's a structural mismatch between the content stored and the query used for searching (hence why HyDE works well). Memora started because we were working on a stealth AI startup where we used an agent that would query into a vector DB, but it would take multiple tries for the agent to find what it needed (20% of the time it couldn't find at all). This process was not only costly but also time-consuming, with each search taking up precious seconds. We realized that our biggest bottleneck was the accuracy from the semantic search results. So, in order to improve the product, we had to go beyond simple semantic search and, ended up creating a retrieval pipeline that used semantic search as the initial step, providing the first 1k batch of documents. These documents were then reranked using neural rankers. Not only we were able to increase the product accuracy by over 4x, we were able to completely eliminate the need for the agent making multiple search queries. A cool challenge was creating the two ranking models for Memora's retrieval pipeline. We applied the rankT5 principle, converting a encoder-decoder LLM model to an encoder-only by transforming llama-7b into rank-llama. We, then, finetuned it further on a ton of synthetic data. However, running a model with 7B parameters can be costly. That's where our second ranking model, with 120M parameters, comes into play. This model was crafted by distilling rank-llama. On top of that, we're also trying to focus on offering a great DX: i) we feel that our Javascript/Typescript library offers great developer ergonomics by using the builder pattern; ii) having our own embedding model allows us to streamline the experience. Instead of calling one API to embed your data and another API to store the embedding, you simply call Memora, pass in your data, and we handle the embedding and storage. That said, Memora is still in its early stages. Both the embedding model and the retrieval pipeline have room are far from perfect. However, we feel it's reached a point where it works for most usecases pretty well. To be honest, we see still some low-hanging fruits way to improve the models but we are advocates of launching early. We're thrilled to share Memora to y'all, we would love to hear any feedback or critiques you might have!

Share card

Actual performance

5points
3comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: started, para · Missing: supports, reddit linkedin, podcasting
96%96% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: agent, model, models · Missing: mac, agents, macos
96%96% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: llama, pipe, io · Missing: https docs, excited, just released
58%58% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way, para · Missing: mobile apps, ios, personal
36%36% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: builder · Missing: plus, platform, intuitive
33%33% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

I
I put PubMed in a vector DB62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I put PubMed in a vector DB

Hacker News97
Mo
Move data from any vector DB to any other vector DB63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Move data from any vector DB to any other vector DB

Hacker News3
XT
XTrace – Encrypted vector DB (search embeddings without exposing them)70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

XTrace – Encrypted vector DB (search embeddings without exposing them)

Hacker News13
Ve
VectorLiteDB – a vector DB for local dev, like SQLite but for vectors62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

VectorLiteDB – a vector DB for local dev, like SQLite but for vectors

Hacker News13
Bl
BlobCity DB44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

BlobCity DB

Hacker News37
Th
The Whois DB44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The Whois DB

Hacker News2
Aj
Ajqvue Covid-19 SQLite DB56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ajqvue Covid-19 SQLite DB

Hacker News1
C+
C++ virtual_vec vector implementation47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

C++ virtual_vec vector implementation

Hacker News39
C+
C++23 constexpr n-dimensional Euclidean vector56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

C++23 constexpr n-dimensional Euclidean vector

Hacker News1
I
I wrote a GPU-less billion-vector DB for molecule search (live demo)71%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I wrote a GPU-less billion-vector DB for molecule search (live demo)

Hacker News9