vector-db

command module
v0.0.0-...-d52f0d6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 3 Imported by: 0

README

vector-db

A simple vector database that can be used to search for similar vectors in logarithmic time.

drawing drawing

Table of Contents

Examples

Hello World
$> 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

$> 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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
examples
internal
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL