Tutorials Qdrant

Qdrant Quickstart: Collections, Vectors, First Search

Ten minutes from provisioning to your first search: endpoint and API key, create a collection, write vectors, query with curl or Python. Full examples.

E
Eric Founder, Roamer Tech · · 2 min read

Want to start now? Deploy your Qdrant in 60 seconds

The memory engine for AI apps — fully managed vector database. From NT$299/mo.

Subscribe to Qdrant

After you provision Qdrant hosting on RoamerHost, the project detail page in the dashboard shows two things: the REST API endpoint (in the form https://qdr-xxxx.roamerhost.com) and your API key. Every request must carry the api-key header; requests without a key are always rejected.

1. Verify the connection

curl https://qdr-xxxx.roamerhost.com \
  -H "api-key: YOUR_API_KEY"

If you see {"title":"qdrant - vector search engine", ...}, you're connected.

2. Create a collection

A collection is the equivalent of a table. size must match the output dimension of the embedding model you use (OpenAI text-embedding-3-small is 1536, multilingual E5 is 768):

curl -X PUT https://qdr-xxxx.roamerhost.com/collections/docs \
  -H "api-key: YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"vectors": {"size": 1536, "distance": "Cosine"}}'

3. Write vectors

In practice the vectors come from an embedding API; this shows the write format. payload holds the source text or any extra fields, and it comes back with the search hit:

curl -X PUT "https://qdr-xxxx.roamerhost.com/collections/docs/points?wait=true" \
  -H "api-key: YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"points": [{"id": 1, "vector": [0.05, 0.61, ...], "payload": {"text": "Return policy: within seven days of receiving the item..."}}]}'

4. Search

curl -X POST https://qdr-xxxx.roamerhost.com/collections/docs/points/search \
  -H "api-key: YOUR_API_KEY" -H "Content-Type: application/json" \
  -d '{"vector": [0.04, 0.59, ...], "limit": 3, "with_payload": true}'

Results come back sorted by similarity; a higher score means more relevant.

Using Python

pip install qdrant-client
from qdrant_client import QdrantClient

client = QdrantClient(
    url="https://qdr-xxxx.roamerhost.com",
    api_key="YOUR_API_KEY",
)
print(client.get_collections())

Everything after that — upsert, search — is exactly as described in the official documentation. RoamerHost runs the standard open-source Qdrant, with no API differences.

Related articles

Want someone to build it for you?

If you'd rather not assemble these workflows yourself, or the scale is big enough that you want someone planning alongside you, Roamer Tech (RoamerHost's parent company) takes on contract work for business process automation and AI agent development:

Ready to get started with Qdrant?

60 seconds after you subscribe, Qdrant is installed for you — an isolated container with hard resource limits you never share, and HTTPS out of the box.

Subscribe to Qdrant

Billed monthly · no contract · cancel anytime

Hi, I'm Roamer! Tap me anytime with a question and I'll help you out.

Roamer

Roamer - AI assistant

Online
Roamer

Ask me anything, anytime — I'll do my best to help!

Powered by RoamerHost AI