sie-qdrant
SIE integration for Qdrant.
Installation
pip install sie-qdrant
Dense embeddings
from qdrant_client import QdrantClient
from qdrant_client.models import Distance, VectorParams, PointStruct
from sie_qdrant import SIEVectorizer
vectorizer = SIEVectorizer(base_url="http://localhost:8080", model="BAAI/bge-m3")
qdrant = QdrantClient("http://localhost:6333")
qdrant.create_collection(
collection_name="documents",
vectors_config=VectorParams(size=1024, distance=Distance.COSINE),
)
texts = ["first doc", "second doc"]
vectors = vectorizer.embed_documents(texts)
qdrant.upsert(
collection_name="documents",
points=[
PointStruct(id=i, vector=v, payload={"text": t})
for i, (t, v) in enumerate(zip(texts, vectors))
],
)
query_vec = vectorizer.embed_query("search text")
results = qdrant.query_points(
collection_name="documents", query=query_vec, limit=5
)
Named vectors (dense + sparse)
SIE's multi-output encode produces dense and sparse vectors in one call.
Qdrant supports sparse vectors natively via SparseVector(indices, values),
so no expansion to full vocabulary length is needed:
from qdrant_client import QdrantClient
from qdrant_client.models import (
Distance, VectorParams, PointStruct,
SparseVectorParams, SparseVector,
)
from sie_qdrant import SIENamedVectorizer
vectorizer = SIENamedVectorizer(
base_url="http://localhost:8080",
model="BAAI/bge-m3",
output_types=["dense", "sparse"],
)
qdrant = QdrantClient("http://localhost:6333")
qdrant.create_collection(
collection_name="documents",
vectors_config={"dense": VectorParams(size=1024, distance=Distance.COSINE)},
sparse_vectors_config={"sparse": SparseVectorParams()},
)
named = vectorizer.embed_documents(["hello world"])
qdrant.upsert(
collection_name="documents",
points=[
PointStruct(
id=0,
vector={
"dense": named[0]["dense"],
"sparse": SparseVector(**named[0]["sparse"]),
},
payload={"text": "hello world"},
)
],
)
Storage advantage: Unlike integrations that expand sparse vectors to full vocabulary length (~30K floats), Qdrant stores sparse vectors in their native indices+values form, making hybrid search storage-efficient.
Testing
# Unit tests (no server needed)
pytest
# Integration tests (requires SIE + Qdrant)
pytest -m integration
Metadata
Release files for sie-qdrant 0.8.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sie_qdrant-0.8.3.tar.gz | 10.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sie_qdrant-0.8.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / sie_qdrant-0.8.3.tar.gz
| Download URL | sie_qdrant-0.8.3.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da510139981dd0e46be712c7270be3d8d49ad7dfcd39e78e55b7462a2951a4f6
|
|
BLAKE2b-256 checksum How to use checksums |
3be569f9d692103c3420a454b8a9b46fc541bf2b34343fa79bc981ff705f5941
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logRelease files / sie_qdrant-0.8.3-py3-none-any.whl
| Download URL | sie_qdrant-0.8.3-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8e288b6096891d1e4fbfab7e2ce4237cc1561cb4b50c04d6581cd7463df14b5
|
|
BLAKE2b-256 checksum How to use checksums |
4dceae6393e026f5c283e3d92d0a81b895d43fc5ac59688cf6787a151f769bf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency log