Campbell Embed v1
hybrid text embedding model for efficient search
2 min readupdated
Campbell Embed v1 is a Chinese text embedding model featuring a big.LITTLE architecture that combines one lightweight and three large base models totaling 1.03B parameters. The model supports two operational modes within a single vector space: a fast Lite mode (using only the lightweight core) and a precise Full mode (utilizing all cores), along with a two-stage search approach where the entire database is indexed in Lite mode and the top 100 results are re-ranked in Full mode. Developed by the Funk&Love dance team for the LockAI project, the solution improves archive search accuracy without requiring full database re-indexing or GPU overload. It is well-suited for developers building search engines, semantic search systems, and Chinese-language RAG applications.
Key features
- Hybrid big.LITTLE architecture combining the Scooby lightweight core and three powerful base encoders via a trained fusion layer.
- Two operating modes (Lite and Full) sharing a common vector space, enabling a flexible balance between speed and accuracy.
- High search quality: scores an average of 73.32 on the MTEB benchmark (cmn, v1), outperforming several larger alternatives.
- Two-stage search retains 97% of Full mode accuracy while significantly accelerating the processing of large text collections.
What you can do
- Set up a two-stage search: index a large collection of documents in Lite mode, then re-rank the top 100 results using the Full configuration.
- Integrate the model into Python text processing pipelines using the sentence-transformers library.
- Optimize server search performance by using the lightweight core on a CPU for initial selection and a GPU for final ranking.
Example
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("funkandlove/campbell-embed-v1", trust_remote_code=True)
docs = ["Locking 起源于上世纪七十年代的洛杉矶", "今天天气不错"]
# Full mode (default): 5888-d
full = model.encode(docs, normalize_embeddings=True)
# Lite mode: 512-d, identical to Scooby Embed v1
model[0].set_mode("lite")
lite = model.encode(docs, normalize_embeddings=True)
model[0].set_mode("full")
Read more
DetailsBenchmarks: MTEB (cmn, v1) average score 73.32 (Retrieval: 79.67, Reranking: 74.22).
Parameters and limitations: 1.03B parameters, maximum sequence length of 512 tokens per core, Chinese language support only.
Requirements: requires trust_remote_code=True to load the campbell_fusion.py fusion layer.
License: CC BY-NC 4.0.










Comments