Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

BAAI
/
bge-base-en-v1.5

Feature Extraction
sentence-transformers
PyTorch
ONNX
Safetensors
Transformers
English
bert
sentence-similarity
mteb
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community
17

Instructions to use BAAI/bge-base-en-v1.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use BAAI/bge-base-en-v1.5 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("BAAI/bge-base-en-v1.5")
    
    sentences = [
        "The weather is lovely today.",
        "It's so sunny outside!",
        "He drove to the stadium."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [3, 3]
  • Transformers

    How to use BAAI/bge-base-en-v1.5 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("feature-extraction", model="BAAI/bge-base-en-v1.5")
    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("BAAI/bge-base-en-v1.5")
    model = AutoModel.from_pretrained("BAAI/bge-base-en-v1.5", device_map="auto")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

Internal model structure preview

2
#17 opened about 1 month ago by
svetoviz

Multilingual powerhouse — testing for mobile deployment

#16 opened 3 months ago by
3morixd

VORTEXRAG: 7-Layer RAG — Causal Drift Filtering + Context Poison Guard [paper + code + demo]

#15 opened 4 months ago by
vigneshwar234

VORTEXRAG: 7-Layer RAG — Causal Drift Filtering + Context Poison Guard [paper + code + demo]

#14 opened 4 months ago by
vigneshwar234

Add exported onnx model 'model_qint8_avx512_vnni.onnx'

#13 opened almost 2 years ago by
tomaarsen

Add exported onnx model 'model_O4.onnx'

#12 opened almost 2 years ago by
tomaarsen

Add exported openvino model 'openvino_model_qint8_quantized.xml'

#11 opened almost 2 years ago by
tomaarsen

Add exported openvino model 'openvino_model.xml'

#10 opened almost 2 years ago by
tomaarsen

Update infinity section in readme

#9 opened almost 2 years ago by
michaelfeil

Retrieval instruction

#5 opened over 2 years ago by
austinmw

Normalization of outputs

2
#2 opened almost 3 years ago by
skirres
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs