BAAI/bge-m3
模型介绍模型推理文件和版本Pull Requests讨论分析
bge-m3 在线推理
句子相似度
New
调用 API 代码
API 文档
cURL
添加令牌为:
import requests import json url = "https://api.gitcode.com/api/v5/similarity/" headers = { "Authorization": "Bearer {os.environ['ACCESS_TOKEN']}", "Content-Type": "application/json" } payload = json.dumps({ "model": "bge-m3", "inputs": { "source_sentence": "That is a happy person", "sentences": [ "That is a happy dog", "That is a very happy person" ] } }) response = requests.request("POST", url, headers=headers, data=payload) print(response.text)