1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! Qdrant-backed implementation of `klieo_core::memory::LongTermMemory`.
//!
//! `MemoryQdrant::connect(url)` is the capability-shaped default —
//! connects to a Qdrant gRPC URL, ensures the per-scope collection
//! exists with the embedder's vector dimension, and returns an
//! `Arc<dyn LongTermMemory>` ready to drop into
//! `klieo_core::AgentContext`. Defaults to [`DummyEmbedder`] and a
//! standard [`QdrantConfig`].
//!
//! For a custom [`QdrantConfig`] (API key, collection prefix,
//! plaintext-remote opt-in) or a real [`Embedder`], reach for
//! [`MemoryQdrant::new`] directly.
//!
//! # Quickstart
//!
//! ```no_run
//! use klieo_memory_qdrant::MemoryQdrant;
//!
//! async fn example() {
//! let mem = MemoryQdrant::connect("http://127.0.0.1:6334").await.unwrap();
//! let _ = mem.long_term;
//! }
//! ```
//!
//! # Advanced wiring — custom config + embedder
//!
//! ```no_run
//! use klieo_memory_qdrant::{MemoryQdrant, QdrantConfig, DummyEmbedder};
//! use std::sync::Arc;
//!
//! async fn example() {
//! let cfg = QdrantConfig::new("http://qdrant.internal:6334")
//! .with_api_key("supersecret")
//! .with_collection_prefix("triage");
//! let mem = MemoryQdrant::new(cfg, Arc::new(DummyEmbedder)).await.unwrap();
//! let _ = mem.long_term;
//! }
//! ```
//!
//! # What's implemented
//!
//! Only `LongTermMemory`. `ShortTermMemory` and `EpisodicMemory` are
//! not Qdrant-shaped — see `klieo-memory-sqlite` and
//! `klieo-memory-neo4j` for those.
pub use ;
pub use FakeEmbedder;
pub use QdrantConfig;
pub use QdrantLongTerm;
pub use MemoryQdrant;