RediSearch / redisearch-go

Go client for RediSearch
https://redisearch.io
BSD 3-Clause "New" or "Revised" License
288 stars 65 forks source link

Vector similarity #168

Closed Leterax closed 1 year ago

Leterax commented 1 year ago

Is there a possibility to use vector similarity search? I wasn't able to find it in the docs. Thanks!

gkorland commented 1 year ago

@Leterax please notice the code already supports VecSim see: https://github.com/RediSearch/redisearch-go/pull/151 A new official version should be released soon.

gkorland commented 1 year ago

ref https://github.com/RediSearch/redisearch-go/issues/146

Leterax commented 1 year ago

Thank you very much, that's great to hear! You probably don't have a eta on the official release right? Working with the PR should be fine until then. :)

Leterax commented 1 year ago

The test in #151 uses the internal connection pool and HSET. I assume the user is supposed to create documents using redisearch.NewDocument(fmt.Sprintf("image:%s", imageName), 1.0).Set("v", vector).Set("name", imageName) and index them using r.client.Index([]redisearch.Document{doc}...)?

Avital-Fine commented 1 year ago

@Leterax Yes correct :)

chayim commented 1 year ago

Closing - we released 2.1.0