Skip to content

About

Run Qdrant in Docker, create a collection, upsert vectors, and run similarity search over REST and Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

qdrant-lab

Run Qdrant in Docker, create a collection, upsert vectors, and run similarity search over REST and Python.

At a glance

Field Detail
Repository qdrant-lab
Primary language Mixed / documentation
Topics database, database-labs, devarent, docker, embeddings, lab, qdrant, similarity-search, vector-database
License MIT
Branch main
Maintainer @devarent

Overview

qdrant-lab is a hands-on repository focused on: Run Qdrant in Docker, create a collection, upsert vectors, and run similarity search over REST and Python.. Primary language: Mixed / documentation. Topics: database, database-labs, devarent, docker, embeddings, lab, qdrant, similarity-search, vector-database. The README below documents the project; use the table above for a quick overview.

Global references

🇮🇸 Iceland · 🇳🇿 New Zealand · 🇨🇭 Switzerland · 🇸🇮 Slovenia · 🇮🇪 Ireland · 🇦🇹 Austria · 🇵🇹 Portugal · 🇸🇬 Singapore · 🇫🇮 Finland


qdrant-lab LANG multi STARS 0 LICENSE MIT
OPEN SOURCE BUILT IN PUBLIC HANDS ON LABS DOCUMENTED

Run Qdrant in Docker, create a collection, upsert vectors, and run similarity search over REST and Python.


Arya Fatthurahman

Qdrant Lab

Run Qdrant in Docker, create a collection, upsert vectors, and run similarity search over REST and Python.

Database: Qdrant Category: Vector database Runs in Docker License: MIT compose-check

What this lab is

Qdrant is a vector database for semantic search and retrieval-augmented generation. This lab starts a local instance, uses a toy four-dimensional vector so the math stays visible, and shows the same workflow through the REST API and the Python client.

Quickstart

docker compose up -d
bash examples/01_create_collection.sh
bash examples/02_upsert_search.sh
open http://localhost:6333/dashboard
python -m pip install qdrant-client
python examples/qdrant_client.py

Connection details

Field Value
REST http://localhost:6333
gRPC localhost:6334
Dashboard http://localhost:6333/dashboard
Collection lab
Vector size 4 (toy vectors; replace with your embedding dimension)

Examples

File What it shows
docker-compose.yml Engine, ports, and persistent volume.
.github/workflows/compose-check.yml Validates the Compose file on every push.
examples/01_create_collection.sh Create a collection with cosine distance.
examples/02_upsert_search.sh Upsert three points and search for the nearest one.
examples/qdrant_client.py The same workflow with the Python client.

Exercises

  1. Replace the toy vectors with sentence embeddings and search for a natural-language query.
  2. Add a payload index on title and filter the search by payload.
  3. Delete a point and confirm it no longer appears in results.
  4. Compare cosine, dot product, and Euclidean distance on the same vectors.

Notes and limits

  • The four-dimensional vectors are intentionally small so you can inspect them by hand.
  • The dashboard is served at /dashboard; the REST API is on port 6333 and gRPC on 6334.
  • Data persists in the qdrant-data volume.
  • For production, add authentication and TLS; the default local setup has neither.

Run it from anywhere

This lab publishes its ports on 127.0.0.1 only. To use it from another country, do not open the database port to the internet. Pick one:

  • VPS + private tunnel: run the lab on a small Ubuntu VPS, keep the port closed, and connect through WireGuard or ssh -L.
  • Managed service: use a managed free tier for this engine and point the same examples at its connection string.
  • HTTP UI only: if the engine has a web UI, put it behind Caddy with TLS and basic auth.

The shared checklist, provider map, and commands are in REMOTE-ACCESS.md.

Cleanup

docker compose down -v

-v also removes the named volume, so the next start is a clean slate.

References


Part of the database-labs collection: 26 database engines, one index.

License

MIT (c) 2026 Arya Fatthurahman. See LICENSE.


Tech Stack

Git
Full Tech Stack Wall

Languages
Rust Go TypeScript JavaScript Java Python C C++ Kotlin Swift Ruby PHP Lua Shell

Frontend & Desktop
Vue React Svelte Next.js Nuxt Flutter React Native Tauri Electron Vite HTML5 CSS3 Sass Less Tailwind CSS Bootstrap Three.js Node.js jQuery

Database & Storage
MySQL PostgreSQL SQLite SQL Server Oracle Redis MongoDB DuckDB ClickHouse Elasticsearch Neo4j InfluxDB Cassandra DynamoDB Firebase Supabase MinIO Firebird IBM DB2 MariaDB CockroachDB IRIS Databricks SQL Snowflake Qdrant Redshift Apache Kylin BigQuery VictoriaMetrics Databend TDengine Teradata

Messaging & Streaming
Kafka RabbitMQ RocketMQ Pulsar Flink

DevOps & Cloud Native
Docker Kubernetes Terraform Ansible Jenkins GitHub Actions GitLab CI Prometheus Grafana Nginx AWS Azure Cloudflare

Tools & Platforms
Git Linux macOS VS Code Vim Tmux Homebrew Postman Figma Markdown Maven Gradle CMake

Hands-on engineering, built and documented in the open.

DBX Connections

Firebird_5n1b JDBCX_d5pn IBM DB2_0leg MariaDB_80g9 SQL Server_wieh CockroachDB_mo9c IRIS_cz3h Databricks_SQL_rmue Snowflake_cm_h9 Redis_u0tv Qdrant_1r3s Elasticsearch_zfc3 Cassandra_d8eb MongoDB_vexq Redshift_p9d7 Apache Kylin_xmpz Neo4j_j3dsg BigQuery_homk Apache Kafka_xpqk VictoriaMetrics_m3sf InfluxDB_wuju Databend_dey6 TDengine_4c9i Teradata_rwlm

Connection names shown in the DBX sidebar - decorative reference badges.

About

Run Qdrant in Docker, create a collection, upsert vectors, and run similarity search over REST and Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors