https://github.com/longmaoteamtf/ant
Open-source vector database built to embedding similarity search
https://github.com/longmaoteamtf/ant
faiss k-nearest-neighbours similarity-search vector-database
Last synced: 4 months ago
JSON representation
Open-source vector database built to embedding similarity search
- Host: GitHub
- URL: https://github.com/longmaoteamtf/ant
- Owner: LongmaoTeamTf
- License: apache-2.0
- Created: 2021-08-10T06:37:34.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-07T10:44:34.000Z (about 4 years ago)
- Last Synced: 2025-04-15T18:44:19.582Z (6 months ago)
- Topics: faiss, k-nearest-neighbours, similarity-search, vector-database
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ant
[](requirements.txt)
[](requirements.txt)
[](LICENSE)
[]()Ant is an open-source vector database built to embedding similarity search based on [Faiss](https://github.com/facebookresearch/faiss).
Data backup draws on the hybrid mechanism of Redis's RDB and AOF to ensure data security and consistency.## Quick start
*Build docker image.*
```shell script
$ docker build -t ant:latest .
```
*Start ant server.*
```shell script
$ docker run ant:latest -p 1234:1234 -v {logs_dir}:/ant/logs {data_dir}:/ant/data
```## Restful API
| Method | URL | description | Status |
| ------ | --- | ----------- | ------ |
| POST | [/ant/create](RestfulAPI.md#创建实例) | *Create the instance by name.*| []() |
| POST | [/ant/delete](RestfulAPI.md#删除实例) | *Delete the instance by name.*| []() |
| GET | [/ant/list](RestfulAPI.md#列举实例) | *List all instances.* | []() |
| POST | [/ant/info](RestfulAPI.md#获取实例信息) | *Get the information of instance by name.*| []() |
| POST | [/ant/build](RestfulAPI.md#构建索引) | *Build the Faiss index of instance by input data.*| []() |
| POST | [/ant/insert](RestfulAPI.md#插入索引数据) | *Insert data to Faiss index of instance.*| []() |
| POST | [/ant/update](RestfulAPI.md#更新索引数据) | *Update the Faiss index of instance.*| []() |
| POST | [/ant/remove](RestfulAPI.md#删除索引数据) | *Remove data of the Faiss index of instance.*| []() |
| POST | [/ant/search](RestfulAPI.md#K近邻查询) | *K-nearest neighbor query from Faiss index.*| []() |
| GET | [/ant/bgsave](RestfulAPI.md#后台备份) | *Back up index data in the background.*| []() |## Configuration
* [Logger](ant/configs/logger.yml)
* [Service](ant/configs/service.yml)## License
[Apache-2.0](ant/LICENSE)