Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tobias-mayer/vector-db
A minimalistic vector database that can be used to search for similar vectors in logarithmic time.
https://github.com/tobias-mayer/vector-db
go golang vector-database vector-search
Last synced: 8 days ago
JSON representation
A minimalistic vector database that can be used to search for similar vectors in logarithmic time.
- Host: GitHub
- URL: https://github.com/tobias-mayer/vector-db
- Owner: tobias-mayer
- License: mit
- Created: 2023-04-08T08:17:29.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-09T19:52:51.000Z (7 months ago)
- Last Synced: 2024-04-10T00:09:08.111Z (7 months ago)
- Topics: go, golang, vector-database, vector-search
- Language: Go
- Homepage:
- Size: 480 KB
- Stars: 16
- Watchers: 2
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-distributed-system-projects - tobias-mayer/vector-db - a simple vector database that can be used to search for similar vectors in logarithmic time
README
# vector-db
# Table of Contents
- [vector-db](#vector-db)
- [Table of Contents](#table-of-contents)
- [Examples](#examples)
- [Hello World](#hello-world)
- [Makefile Targets](#makefile-targets)# Examples
### Hello World
```sh
$> go run examples/helloworld/helloworld.go
Output:
The following vectors are the closest neighbors based on cosine similarity:
vector: [0.16 0.9], distance: 0.997870
vector: [0.014 0.99], distance: 0.995346
vector: [0.01 0.88], distance: 0.995074
vector: [0.009 0.95], distance: 0.994885
vector: [0 0.91], distance: 0.993884
```# Makefile Targets
```sh
$> make
bootstrap install build deps
build build golang binary
clean clean up environment
cover display test coverage
fmt format go files
help list makefile targets
install install golang binary
lint lint go files
pre-commit run pre-commit hooks
run run the app
test display test coverage
```