Expand description
嵌入模型模块
文本嵌入、批量处理、缓存。
支持多种嵌入模型提供商:
- OpenAI Embeddings API
- HuggingFace Inference API
- Cohere Embed API
- 本地 SentenceTransformers 模型
Structs§
- Cache
Stats - 缓存统计信息
- Cohere
Embeddings - Cohere 嵌入模型
- Embedding
Cache - 嵌入缓存
- Embeddings
Config - 嵌入模型配置
- Embeddings
Factory - 嵌入模型工厂
- Hugging
Face Embeddings - HuggingFace 嵌入模型
- Local
Embeddings - 本地 SentenceTransformers 嵌入模型
- OpenAI
Embeddings - OpenAI 嵌入模型
Enums§
- Embedding
Provider - 嵌入模型提供商类型
Constants§
- DEFAULT_
CACHE_ MAX_ ENTRIES - 缓存默认最大条目数
- DEFAULT_
CACHE_ TTL_ SECS - 缓存默认 TTL(秒)
- DEFAULT_
EMBEDDING_ DIMENSION - 默认嵌入维度
- DEFAULT_
EMBEDDING_ MODEL - 默认嵌入模型
Traits§
- Embedding
Model - 嵌入模型统一接口
Type Aliases§
- Embeddings
- 向后兼容的 Embeddings 类型