RAGdb

What belongs in a portable retrieval file?

A design note on keeping searchable material and its index together.

By Ahmed Bin Khalid

A file I can move

For small retrieval projects, I want to take a collection to another machine without rebuilding the index from scratch. In RAGdb, ingestion, the document store, and the retrieval index sit behind one SQLite-based file. That makes the file a practical unit to copy and version.

Keep the source traceable

If a search result looks wrong, I should be able to find the document and see what was indexed. I would test a collection with a few known questions, an exact identifier, and a paraphrase. That gives me something concrete to inspect when keyword and embedding results disagree.

Write down the retrieval setup

A second machine still needs a compatible retrieval setup. I keep track of the embedding model and how the source was processed so I can explain changes in the results. I also treat a retrieval file like the documents it contains when deciding where to copy it.

Project links