bge-small-en-v1.5

1.3K downloads 0 likes on ModelScope updated

Model card


tasks:

  • embedding license: Apache License 2.0

bge-small-en-v1.5

This repo contains embedding model files for bge-small-en-v1.5.

FlagEmbedding can map any text to a low-dimensional dense vector which can be used for tasks like retrieval, classification, clustering, or semantic search. And it also can be used in vector databases for LLMs.

Information

  • dimensions: 384
  • max_tokens: 512
  • language: en

Usage

Start a local instance of Xinference

xinference -p 9997

Launch and inference

from xinference.client import Client

client = Client("http://localhost:9997")
model_uid = client.launch_model(model_name="bge-small-en-v1.5", model_type="embedding")
model = client.get_model(model_uid)

model.create_embedding("write a poem.")