Skip to main content
Get a vector search database running on your machine in under five minutes. You will install Vector, configure a collection, upsert a few records, and run a similarity search using curl.

Install OpenData Vector

Download and install the Vector binary:
This places the opendata-vector binary in the current directory.

Configure Vector

Create a file called vector.yaml with the following contents:
vector.yaml
This configures a collection with:
  • 2 dimensions — each vector has two f32 components.
  • L2 distance — Euclidean distance, where lower scores mean higher similarity.
  • One indexed field — a label string field you can filter on during search.

Start the server

Run the binary with the configuration file you just created:
Vector starts and is ready to accept requests on port 8080.

Upsert records

Insert three records with 2-dimensional vectors. Requests use the application/protobuf+json content type:
The server responds with a confirmation:

Search for nearest neighbors

Search for the 2 closest vectors to [0.0, 0.9] — a point near “north”:
The response returns the nearest records ranked by L2 distance:
north is closest because [0.0, 1.0] is only 0.1 away from the query [0.0, 0.9] in Euclidean distance (score = 0.01 = 0.1²).

Fetch a record by ID

Retrieve a specific record using its ID:

Next steps

  • To try a more realistic quickstart that indexes a large set of documents using a real embedding model, see the example on GitHub.
  • Understand how records are structured in Data Model.
  • Learn how the vector index works in Storage Design.
  • Browse the full REST API in the API reference section in the sidebar.