# similarities

Similarities: a toolkit for similarity calculation and semantic search. 相似度计算、匹配搜索工具包，支持亿级数据文搜文、文搜图、图搜图，python3开发，开箱即用。

Canonical page: https://www.reposhelf.co.uk/projects/github/shibing624/similarities.html

- Project ID: shibing624/similarities
- Source: GitHub
- Original project: https://github.com/shibing624/similarities
- Description attribution: project author metadata
- Categories: Education
- Technologies: Python
- Licence: Apache-2.0
- Repository availability checked: 2026-11-23T15:31:00.044Z
- Demo page loaded: 2026-11-12T13:19:12.131Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> similarities: a toolkit for similarity calculation and semantic search, supports text and image. 相似度计算、语义匹配搜索工具包。

> similarities 实现了多种文本和图片的相似度计算、语义匹配检索算法，支持亿级数据文搜文、文搜图、图搜图，python3开发，pip安装，开箱即用。

- 语义匹配模型【推荐】：本项目基于text2vec实现了CoSENT模型的文本相似度计算和文本搜索
- 支持中英文、多语言多种SentenceBERT类预训练模型
- 支持 Cos Similarity/Dot Product/Hamming Distance/Euclidean Distance 等多种相似度计算方法
- 支持 SemanticSearch/Faiss/Annoy/Hnsw 等多种文本搜索算法
- 支持命令行文本转向量（多卡）、建索引、批量检索、启动服务

## Author-documented requirements and audience

> similarities: a toolkit for similarity calculation and semantic search, supports text and image. 相似度计算、语义匹配搜索工具包。





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/shibing624/similarities/blob/main/README.md

Extraction checked: 2026-10-19T09:32:53.098Z

Last recorded source update: 2026-03-05T09:05:43.000Z

Saved release: 1.1.2 — 2023-09-22T02:49:25.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=shibing624%2Fsimilarities). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
