moonrag 0.1

vector store ยท milvus

moonmilvus

A Milvus vector store for moonrag, over Milvus's REST API. It is a module of its own, so a project that does not use Milvus does not build it.

moon add moonbitstack/moonmilvus

Native only: it opens sockets, so it is built for native and skipped for js and wasm.

One line, like the other stores

It implements the same VectorStore contract as the in-memory store, so a retriever does not know which store it is reading:

let store = @moonmilvus.MilvusStore::new("http://127.0.0.1:19530", embedder, dimension=256)
let store : &@moonrag.VectorStore = store

create builds the collection or class the server needs and is safe on every start; the standard cases run against a live Milvus server in CI.

The score is the same cosine

Like SQLite and MySQL, this store reads the vectors back and recomputes the cosine in this process with the same cosine_similarity and the same Filter::matches every other backend uses โ€” so all backends agree on what a match is and how a result ranks, rather than each trusting its server.