A simple and efficient vector database written in Go.
- Fast vector indexing and search
- Embedding generation using fastembed
- Flat-index search with cosine similarity
- Go 1.20+
- ONNX Runtime (see below)
Clone the repository:
git clone https://github.com/sharath-09/vector-db.git
cd vector-dbInstall dependencies:
go run main.goEmbeddings generated using BGEBaseENV15.
Download a ONNX runtime file from onnxruntime_go_examples, and set the ONNX_PATH environment variable to the .dylib file for mac, or .so for linux
Run all tests:
go test ./...MIT License. See LICENSE for