Three retrieval problems, solved on LanceDB. A free database that keeps every version.
We ran into these three problems on client projects: legal archives, invoice matching, supplier analysis. Here each demo runs on sample data in LanceDB, a free open-source database that needs no server.
Three problems from client projects, solved with working demos.
Why the open-source version
The documents are already embedded. Weeks later we need the judge, the amount and the dates.
IT-TAX-001Italian tax court
IT-TAX-002Italian tax court
EU-CJEU-001European Court of Justice
| doc_id | judge | outcome | amount due | issued | in force | court |
|---|---|---|---|---|---|---|
| IT-TAX-001 | Dr. Rossi | appeal rejected | €48,500 | 2025-03-12 | 2025-06-10 | CGT Milano |
| IT-TAX-002 | Dr. Bianchi | partially accepted | €7,200 | 2024-11-05 | 2025-02-03 | CGT Roma |
| EU-CJEU-001 | Chamber 3 | deduction allowed | €0 | 2025-01-23 | 2025-01-23 | CJEU |
In Pinecone the labels are stored in each vector. Adding one later means finding and rewriting every vector of that document. Here each chunk is a table row, and one update covers all the rows of a document. The only requirement upfront is to store the document ID on each chunk.
A VAT number must match exactly. A description only has to mean the same thing.
Exact keywordVAT LU26375245
Meaning“cloud hosting servers”
Resultmerged · since Aug · outgoing
The AI checks the supplier profile every month. Only changes that last 3 months trigger an update, and every version is kept.
| Dimension | Profile value | Since | Set by |
|---|---|---|---|
| Volume / month | €20,000 | Dec 2025 | human |
| Price per kg | €1.10 | Dec 2025 | human |
| Main material | steel S235 | Dec 2025 | human |
| Invoices / month | 2 | Dec 2025 | human |
| Cost centre | Production | Dec 2025 | human |
| Payment days | 60 | Dec 2025 | human |
LanceDB vs pgvector vs Pinecone: a feature comparison.
| Pinecone | Postgres + pgvector | LanceDB (open source) | |
|---|---|---|---|
| Add a label after embedding | Rewrite each vector | Yes, one SQL update | Yes, one update |
| Exact code + meaning in one query | Partly | Yes, with setup | Yes, built in |
| Every version kept, with no extra design | No | You build history tables | Yes, automatic |
| Server needed | Cloud service, paid | Yes, a database server | No, a folder of files |
| Cost | Monthly bill | Free software | Free (Apache 2.0) |
Postgres with pgvector also solves the problems in Fig. 01 and Fig. 02. What LanceDB adds: every version of the data is kept automatically (Fig. 03), and the whole database is a folder of files, with no server.
The three demos run on a normal PC with free software. Sample data only.
More on the method: four levels of AI autonomy · one AI answer, shown two ways.
Book a 30-minute call