Skip to content

Commit

Permalink
Replace own vector search with Chromem-go
Browse files Browse the repository at this point in the history
Because my implementation is apparently not producing the expected
results and this project fits the bill quite nicely.

Most of the tests are failing, but the core functionality appears to
work.

- [x] Set
- [ ] Get
- [ ] Delete (we have to delete the whole collection presently)
- [ ] Query (it returns normalized embeddings, not the originals)
- [x] Query Normalized

Some features are missing from Chromem, but we don't strictly need
them. Meanwhile there are maybe some minor things that need adding on
our side to get the basic functionality working.
  • Loading branch information
richiejp committed Apr 18, 2024
1 parent 502c1ee commit 49df11b
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 456 deletions.
6 changes: 5 additions & 1 deletion backend/go/stores/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ func main() {
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})

flag.Parse()
s, err := NewStore()
if err != nil {
panic(err)
}

if err := grpc.StartServer(*addr, NewStore()); err != nil {
if err := grpc.StartServer(*addr, s); err != nil {
panic(err)
}
}
Loading

0 comments on commit 49df11b

Please sign in to comment.