Qdrant-backed KnowledgeStore adapter for Zeno.
Project description
zeno-qdrant
Qdrant-backed KnowledgeStore adapter for
Zeno.
Persists facts and documents in either a local on-disk Qdrant store
(no server needed) or a remote Qdrant instance. Each row carries a
user_id payload field so query-time filters enforce multi-tenant
isolation at the database layer. Plugs into the ThreeLayer memory
binder as the knowledge and (optionally) the user_memory backing.
Install
uv add 'zeno-framework[qdrant]'
# or, without the AI package:
uv add zeno-qdrant
Features
- Native async client (
qdrant-client'sAsyncQdrantClient) — no thread-pool wrapping - Local file store via
path=(single-process, embedded use cases) or remote server viaurl=andapi_key= - Bundled FastEmbed (
BAAI/bge-small-en-v1.5, 384-dim) for the default embedding path; no external embedding service required user_id-scoped search via Qdrant'sFilter+FieldConditionpayload filter (S7 isolation enforced server-side)- Lazy collection auto-creation on first
add()
Minimal usage
import asyncio
from pathlib import Path
from zeno.agent import Agent
from zeno.app import ZenoApp
from zeno.builtin_tools import recall, remember
from zeno.channels.cli import CliChannel
from zeno.qdrant import QdrantKnowledgeStore
from zeno.memory.sqlite.conversation_store import SqliteConversationStore
from zeno.memory.sqlite.session_store import SqliteSessionStore
from zeno.memory.three_layer import ThreeLayer
from zeno.memory.vector_backed.user_memory_store import VectorBackedUserMemoryStore
from zeno.testing import FakeProvider
async def main() -> None:
data_dir = Path("./.zeno")
data_dir.mkdir(exist_ok=True)
# Local on-disk store — no server required.
knowledge = QdrantKnowledgeStore(path=data_dir / "qdrant")
# Or talk to a remote cluster:
# knowledge = QdrantKnowledgeStore(url="https://...", api_key="...")
memory = ThreeLayer(
session=SqliteSessionStore(data_dir / "sessions.db"),
user_memory=VectorBackedUserMemoryStore(knowledge_store=knowledge),
knowledge=knowledge,
conversation=SqliteConversationStore(data_dir / "conversations.db"),
)
app = ZenoApp(
agent=Agent(
name="root",
instructions="Use `recall` to look things up and `remember` to store facts.",
tools=[recall, remember],
),
channels=[CliChannel()],
provider=FakeProvider(),
memory=memory,
)
await app.run()
asyncio.run(main())
Pass exactly one of path= or url= — passing both (or neither)
raises ValueError at construction so the failure surfaces before the
first turn rather than mid-search.
Testing
uv run pytest packages/zeno-qdrant
Tests use a temporary local Qdrant directory. The contract suite
shared with zeno-chroma guarantees both adapters honour the same
KnowledgeStore semantics — swap one for the other with no test
changes.
Part of the Zeno framework.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zeno_qdrant-1.0.1.tar.gz.
File metadata
- Download URL: zeno_qdrant-1.0.1.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9768d8f34c23fd93418990b3039fea42a11bcd5c1421f5fdb0520a49de65d92a
|
|
| MD5 |
971062453efd3510b9a4e901273e7c23
|
|
| BLAKE2b-256 |
fcbe8dc77d63b33bca8fceacf6ca91ccc321c687139021c2327aa3fc54b5b39b
|
Provenance
The following attestation bundles were made for zeno_qdrant-1.0.1.tar.gz:
Publisher:
publish.yml on nkootstra/zeno
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zeno_qdrant-1.0.1.tar.gz -
Subject digest:
9768d8f34c23fd93418990b3039fea42a11bcd5c1421f5fdb0520a49de65d92a - Sigstore transparency entry: 1390034910
- Sigstore integration time:
-
Permalink:
nkootstra/zeno@d2cdcd756fc7ca022ec23fe9ef35d76e7683ac9c -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/nkootstra
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d2cdcd756fc7ca022ec23fe9ef35d76e7683ac9c -
Trigger Event:
push
-
Statement type:
File details
Details for the file zeno_qdrant-1.0.1-py3-none-any.whl.
File metadata
- Download URL: zeno_qdrant-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ca34fb6f7fe467bed223f0f8dde2dabe8015331584dcc5bb1c33a99b620fec4
|
|
| MD5 |
cc74d5d9a58064ac524ef5cd5ed88bc2
|
|
| BLAKE2b-256 |
89ec9f19843f7b9925f378f0dca57396f9571624801613df558fa98dd278d338
|
Provenance
The following attestation bundles were made for zeno_qdrant-1.0.1-py3-none-any.whl:
Publisher:
publish.yml on nkootstra/zeno
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zeno_qdrant-1.0.1-py3-none-any.whl -
Subject digest:
9ca34fb6f7fe467bed223f0f8dde2dabe8015331584dcc5bb1c33a99b620fec4 - Sigstore transparency entry: 1390034994
- Sigstore integration time:
-
Permalink:
nkootstra/zeno@d2cdcd756fc7ca022ec23fe9ef35d76e7683ac9c -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/nkootstra
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d2cdcd756fc7ca022ec23fe9ef35d76e7683ac9c -
Trigger Event:
push
-
Statement type: