Skip to content

Quickstart

Get from zero to your first search result in under 60 seconds.

Start Qdrant
docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant

Or use a Qdrant Cloud cluster.

Local Qdrant (no inference):

Local
qql-go connect --url http://localhost:6334

Qdrant Cloud:

Cloud
qql-go connect --url https://<cluster>.qdrant.io --secret <api-key>

Local with embeddings (local inference mode):

Local inference
qql-go connect
--url http://localhost:6334
--inference-mode local
--embedding-endpoint http://127.0.0.1:1234/v1/embeddings
--embedding-model text-embedding-all-minilm-l6-v2-embedding

Verify the connection:

Verify
qql-go doctor
Create collection
qql-go exec "CREATE COLLECTION docs HYBRID"

With HNSW tuning and quantization:

Advanced collection
qql-go exec "CREATE COLLECTION docs HYBRID WITH HNSW (m = 32, ef_construct = 100) WITH QUANTIZATION (type = 'scalar')"

Always create indexes on fields you'll filter on:

Indexes
qql-go exec "CREATE INDEX ON docs FOR category TYPE keyword" qql-go exec "CREATE INDEX ON docs FOR year TYPE integer"
Insert
qql-go exec "INSERT INTO docs VALUES {'id': 1, 'text': 'Qdrant stores dense and sparse vectors', 'category': 'search'} USING HYBRID" qql-go exec "INSERT INTO docs VALUES {'id': 2, 'text': 'QQL makes vector search feel like SQL', 'category': 'tooling'} USING HYBRID" qql-go exec "INSERT INTO docs VALUES {'id': 3, 'text': 'Hybrid search combines dense and BM25 sparse signals', 'category': 'search'} USING HYBRID"

Batch insert multiple documents in one statement:

Batch insert
qql-go exec "INSERT INTO docs VALUES {'id': 4, 'text': 'Qdrant supports HNSW indexing'}, {'id': 5, 'text': 'Score boosting with BOOST expressions'} USING HYBRID"
Search examples
qql-go exec "QUERY 'vector database' FROM docs LIMIT 5" qql-go exec "QUERY 'vector database' FROM docs LIMIT 5 USING HYBRID" qql-go exec "QUERY 'search' FROM docs LIMIT 5 WHERE category = 'search'"
Explain
qql-go explain "QUERY 'vector database' FROM docs LIMIT 5 USING HYBRID RERANK"
REPL
qql-go repl

GoalCommand
Show all collectionsqql-go exec "SHOW COLLECTIONS"
Collection detailsqql-go exec "SHOW COLLECTION docs"
Structured JSON outputqql-go exec --quiet --json "SHOW COLLECTIONS"
Browse all pointsqql-go exec "SCROLL FROM docs LIMIT 20"
Delete a collectionqql-go exec "DROP COLLECTION docs"

Hybrid Search guide
Syntax Reference
Configuration