rag-wtf/open-text-embeddings

Open Source Text Embedding Models with OpenAI Compatible API

43
/ 100
Emerging

Implements a FastAPI server that wraps HuggingFace sentence-transformer and BGE/E5 models behind an OpenAI-compatible `/embeddings` endpoint, enabling drop-in replacement for OpenAI's embeddings API. Intelligently handles model-specific prefixing strategies—automatically applying query vs. document prefixes based on input type (string vs. list)—critical for optimal performance with instruction-tuned models like BAAI/bge and intfloat/e5 series. Supports both on-premise deployment (CPU/GPU modes) and cloud hosting via AWS Lambda or Modal, with LangChain integration for seamless adoption in RAG pipelines.

166 stars. No commits in the last 6 months.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 17 / 25

How are scores calculated?

Stars

166

Forks

23

Language

Python

License

MIT

Last pushed

Jul 13, 2024

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/embeddings/rag-wtf/open-text-embeddings"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.