Skip to content

Commit 18e8f55

Browse files
Merge pull request redis-developer#612 from wjohnsto/master
More VSS tutorial notes
2 parents 514caf9 + ae1da66 commit 18e8f55

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

docs/howtos/solutions/vector/getting-started-vector/index-getting-started-vector.mdx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -678,13 +678,26 @@ console.log(JSON.stringify(result2, null, 4));
678678
*/
679679
```
680680
681+
## Image vs text vector query
682+
681683
:::info Image vs text vector query
682-
The syntax for KNN/range vector queries remains consistent whether you're dealing with image vectors or text vectors.
684+
The syntax for vector KNN/ range queries is consistent, regardless of whether you're working with image vectors or text vectors. Just as there's a method for text vector queries named `queryProductDescriptionEmbeddingsByKNN`, there's a corresponding method for images titled `queryProductImageEmbeddingsByKNN` in the code base.
685+
:::
686+
687+
:::tip GITHUB CODE
688+
689+
Below is a command to the clone the source code used in this tutorial
690+
691+
git clone https://github.com/redis-developer/redis-vector-nodejs-solutions.git
683692
:::
684693
685-
## Understanding the math behind vector similarity searches
694+
Hopefully this tutorial has helped you visualize how to use Redis for vector similarity search.
695+
696+
---
697+
698+
(Optional) If you want to also understand the math behind vector similarity search , then read following
686699
687-
### How to calculate vector similarity?
700+
## How to calculate vector similarity?
688701
689702
Several techniques are available to assess vector similarity, with some of the most prevalent ones being:
690703
@@ -764,3 +777,7 @@ Vectors can also be stored in databases in **binary formats** to save space. In
764777
## Further reading
765778
766779
- [Vector search in Redis 7.2](https://redis.com/blog/introducing-redis-7-2/)
780+
781+
- [Redis VSS getting started](https://github.com/RedisVentures/redis-vss-getting-started)
782+
- [Redis vector use cases](https://redis.com/solutions/use-cases/vector-database/)
783+
- [Vector query docs](https://redis.io/docs/interact/search-and-query/search/vectors/)

0 commit comments

Comments
 (0)