Observed since 20 Oct, 22:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Qdrant vector stores for Microsoft Agent Framework.
An alpha Qdrant integration for Microsoft Agent Framework. QdrantCollection
provides async batch storage and dense-vector search, QdrantStore manages
collection clients, and QdrantSettings handles connection configuration.
pip install agent-framework-qdrant --pre
Requires Python 3.10+ and Qdrant server 1.16.2+. The official async
qdrant-client SDK is installed automatically.
Set QDRANT_URL to your server URL and optionally QDRANT_API_KEY for
authentication. If no URL is supplied, the SDK defaults to localhost.
Both constructors resolve settings from explicit url/api_key arguments,
then an optional env_file_path, then environment variables. API keys accept
str or AF SecretString and are unwrapped only when creating the SDK client.
You can instead pass a configured AsyncQdrantClient as async_client for
advanced SDK options. Supplied clients bypass settings loading and remain
caller-owned unless managed_client=True; connector-created clients are closed
on async context exit.
This example stores and searches a record using a supplied vector, without an embedding service:
import asyncio
from dataclasses import dataclass
from typing import Annotated
from agent_framework import Filter, VectorStoreField, vectorstoremodel
from agent_framework_qdrant import QdrantStore
@vectorstoremodel
@dataclass
class Document:
id: Annotated[int, VectorStoreField("key")]
title: Annotated[str, VectorStoreField("data")]
embedding: Annotated[
list[float] | None, VectorStoreField("vector", dimensions=3)
] = None
async def main() -> None:
async with QdrantStore() as store:
collection = store.get_collection(Document, collection_name="documents")
await collection.ensure_collection_exists()
await collection.upsert(
[Document(1, "Hello Qdrant", [1.0, 0.0, 0.0])],
generate_vectors=False,
)
results = await collection.search(
vector=[1.0, 0.0, 0.0],
filter=Filter("title", "eq", "Hello Qdrant"),
top=3,
)
async for result in results:
print(result["record"].title, result["score"])
asyncio.run(main())
Use get([key], include_vectors=True) to retrieve vectors, or delete([key])
to remove records. Without include_vectors=True, retrieval omits vectors.
Batch writes can partially succeed if the server reports an error.
Tuple payload values, including nested tuples, are stored as JSON arrays without
modifying the input records. Typed models restore tuples through their registered decoder.
Ordered retrieval (order_by) is not supported. Unordered retrieval uses bounded
scroll pages without retaining the skipped prefix.
str or uuid.UUID).
Arbitrary strings and automatically generated keys are not supported.+/- (2**53-1); integer equality supports the full signed 64-bit range.Start a disposable server using the Qdrant version pinned in CI, then run the
integration suite from the python/ directory:
docker run -d --rm --name af-qdrant-test -p 127.0.0.1:16333:6333 qdrant/qdrant:v1.16.2
curl --fail --retry 20 --retry-delay 1 --retry-connrefused http://127.0.0.1:16333/readyz
QDRANT_TEST_URL=http://127.0.0.1:16333 uv run --frozen --directory packages/qdrant poe test-integration -p no:pytest-retry
docker stop af-qdrant-test
Disabling the retry plugin makes failures visible on the first attempt. To run
only the concurrent-creation cases, append
-k concurrent_collection_creation_validates_winning_schema to the test command.
The fixtures create uniquely named collections and delete them after each test.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0a261015 | 15 Oct 2026 | 2 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d56281f4b0abef72253fad37c5d1e42efc84c2733659e78ea4b9be69f39bf8e6