Keep the documents, borrow the model

The knowledge base that answers your questions can live on your own laptop; only the excerpts it needs ever have to leave.

Vector One21 July 20266 min readAbout Co-work ↗

The thing we would not do was upload the documents. We had the same scattered-knowledge problem every team has - contracts, call recordings, research, half of it in files nobody could search - and the obvious fix was to throw it all at a hosted AI product and let it index the lot. We got most of the way to signing up for one before someone said the quiet part out loud: that is our clients' material, and the plan is to copy every page of it onto a server we do not own so a chatbot can read it back to us.

So Co-work is built the other way round. The documents, the text chunks, the embeddings and the conversations all live in a local database on your own machine. Nothing is indexed in a cloud. When you ask a question, it embeds the query, runs a similarity search over the chunks that are already on disk, and sends only the handful of relevant excerpts to whichever model you picked to write the answer. The model sees what it needs to answer this one question. It never sees the library.

Local or cloud, decided per task

The other decision is that you choose, per task, where the work happens. Embeddings, transcription, summaries and chat can each run locally or in the cloud, and the two are not the same trade. A local run goes through Ollama for chat and embeddings, or an on-device Whisper model for transcription, and it costs nothing and leaves nothing. A cloud run goes to a hosted model through our backend, bills against a credit balance, and buys you a bigger model when the task is worth it. Embeddings default to local, because the thing being embedded is the sensitive part and there is no reason to send it anywhere.

That split is the whole design in miniature. The cloud backend knows about accounts, billing, organisations and shared files. It does not know about your knowledge base, because your knowledge base is not there. Even the shared-files folder, the one thing you can put in the cloud on purpose, is encrypted before it leaves the machine.

The unglamorous parts that make it usable

A local-first knowledge tool lives or dies on the ingestion actually working, so most of the effort went there. Long media is the awkward case - a two-hour call is not something you transcribe in full every time - so transcription samples proportionally by default: the whole of a short clip, a shrinking fraction of a long one, spread across evenly-spaced segments, with a full-transcription mode when you actually need every word. Embedding a large import is a resumable job with checkpoints, so closing the laptop halfway through does not mean starting again. A background worker watches the workspace folders and quietly processes new files as they land.

None of that is exciting to describe and all of it is the difference between a demo and a tool you leave running. Search is honest brute-force cosine similarity over the chunks, the top matches formatted as sources and handed to the model with the question. We would rather it be simple and on your machine than clever and in ours.

There are rough edges and we would rather name them than hide them. A couple of the collaboration flows are fully built on the backend and in the interface but not yet wired through the desktop bridge in the middle, so they do not work end to end from the app today. Word and image extraction are accepted but still stubbed. We ship it in that state because the core loop - add documents, ask questions, get answers grounded in your own material without shipping that material anywhere - works, and that is the loop we needed for ourselves first.

Keep the documents, borrow the model | Vector One