Overview
Text Embedding API converts text into high-dimensional vector representations that capture semantic information. These vectors can be used for:- Semantic Search: Search by meaning rather than keyword matching
- Text Classification: Automatically categorize text
- Similarity Computation: Calculate semantic similarity between texts
- Clustering: Automatically group similar texts
- Recommendations: Content-based similarity recommendations
- RAG Applications: Core capability for Retrieval-Augmented Generation
LaoZhang API supports OpenAI, Cohere, BGE and other embedding models, compatible with OpenAI SDK.
Quick Start
Basic Example
Batch Processing
Supported Models
Practical Examples
1. Text Similarity
2. Semantic Search
Best Practices
1. Batch Processing
2. Caching
Related Documentation
Text Generation
Chat API documentation
LangChain
Use Embedding with LangChain
Model Info
View all supported models
Dify Setup
Configure in Dify