llm_kernel/embedding/
mod.rs1pub mod catalog;
11pub mod types;
12
13#[cfg(feature = "embedding-openai")]
14pub mod openai;
15
16#[cfg(any(
17 feature = "embedding-fastembed",
18 feature = "embedding-fastembed-dynamic-linking"
19))]
20pub mod fastembed;
21
22#[cfg(any(
23 feature = "embedding-fastembed",
24 feature = "embedding-fastembed-dynamic-linking"
25))]
26pub mod lazy;
27
28#[cfg(feature = "embedding-fastembed-qwen3")]
29pub mod qwen3;
30
31#[cfg(feature = "embedding-fastembed-nomic-moe")]
32pub mod nomic_moe;
33
34pub mod vector_index;
36
37pub mod async_vector_index;
39
40#[cfg(feature = "qdrant")]
42pub mod qdrant;
43
44#[cfg(feature = "elastic")]
46pub mod elastic;
47
48#[cfg(feature = "pgvector")]
50pub mod pgvector;
51
52#[cfg(feature = "vector-index")]
53pub mod turbovec;
54
55pub use catalog::EmbeddingModel;
56pub use types::{EmbeddingProvider, EmbeddingResult, chunk_batch, cosine_similarity};
57
58#[cfg(feature = "embedding-openai")]
59pub use openai::OpenAIEmbeddingClient;
60
61#[cfg(any(
62 feature = "embedding-fastembed",
63 feature = "embedding-fastembed-dynamic-linking"
64))]
65pub use fastembed::FastembedProvider;
66
67#[cfg(any(
68 feature = "embedding-fastembed",
69 feature = "embedding-fastembed-dynamic-linking"
70))]
71pub use lazy::{EmbeddingCache, LazyFastembedProvider, LazyOpts, ModelState, is_model_cached};
72
73#[cfg(feature = "embedding-fastembed-qwen3")]
74pub use qwen3::Qwen3Provider;
75
76#[cfg(feature = "embedding-fastembed-nomic-moe")]
77pub use nomic_moe::NomicMoeProvider;
78
79#[cfg(feature = "embedding-fastembed-directml")]
86pub use ort;
87
88pub use async_vector_index::AsyncVectorIndex;
89pub use vector_index::{SearchHit, VectorIndex};
90
91#[cfg(feature = "qdrant")]
92pub use qdrant::QdrantVectorIndex;
93
94#[cfg(feature = "elastic")]
95pub use elastic::ElasticsearchVectorIndex;
96
97#[cfg(feature = "pgvector")]
98pub use pgvector::PgVectorIndex;
99
100#[cfg(feature = "vector-index")]
101pub use turbovec::TurbovecIndex;