Skip to content

Commit 41b0dca

Browse files
Merge pull request #54 from RedisInsight/ViktarStarastsenka-patch-1
Updated vector search tutorials
2 parents b146ed4 + 74e37d9 commit 41b0dca

File tree

5 files changed

+68
-22
lines changed

5 files changed

+68
-22
lines changed

src/manifest.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,15 @@
405405
"initialIsOpen": false
406406
},
407407
"children": [
408+
{
409+
"type": "internal-link",
410+
"id": "vss-intro",
411+
"label": "Introduction",
412+
"summary": "Understand how to use Redis as a vector database.",
413+
"args": {
414+
"path": "/vss/intro.md"
415+
}
416+
},
408417
{
409418
"type": "internal-link",
410419
"id": "vss-vectors-basic",
@@ -420,6 +429,14 @@
420429
"args": {
421430
"path": "/vss/vectors-adv-hash.md"
422431
}
432+
},
433+
{
434+
"type": "internal-link",
435+
"id": "vss-learn-more",
436+
"label": "Learn more",
437+
"args": {
438+
"path": "/vss/learn-more.md"
439+
}
423440
}
424441
]
425442
}

src/vss/intro.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## Vector search
2+
3+
Data is often unstructured, which means that it isn't described by a well-defined schema.
4+
5+
Examples of unstructured data include:
6+
- Text passages
7+
- Images
8+
- Videos
9+
- Music titles
10+
11+
One approach to dealing with unstructured data is to vectorize it. Vectorizing means mapping unstructured data to a flat sequence of numbers.
12+
13+
Vectors represent the data embedded in an N-dimensional space.
14+
15+
Machine learning models have facilitated the rise of embeddings as a widely embraced method for generating dense, low-dimensional vector representations.
16+
17+
Given a suitable machine learning model, the generated embeddings can encapsulate complex patterns and semantic meanings inherent in data.
18+
19+
You can use Redis Stack as a vector database, which allows you to:
20+
21+
- Store vectors and the associated metadata within hashes or JSON documents
22+
- Retrieve vectors
23+
- Perform vector searches
24+
25+
26+
### Prerequisites
27+
28+
[Redis Stack](https://redis.io/download?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) >=7.2.0-v7 \
29+
OR \
30+
[RediSearch](https://github.com/RediSearch/RediSearch/) >=2.8.11 \
31+
OR \
32+
A free Redis Stack instance on [Redis Cloud](https://redis.com/try-free/?utm_source=redis\&utm_medium=app\&utm_campaign=redisinsight_vecsim_guide "Redis Cloud").

src/vss/learn-more.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### Documentation
2+
3+
* [Vector search home](https://redis.io/docs/latest/develop/interact/search-and-query/query/vector-search/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials)
4+
5+
### Social
6+
7+
* [Vector search on GitHub](https://github.com/RediSearch/RediSearch)
8+
* [Vector search on Discord](https://discord.com/channels/697882427875393627/1187465888992071710)
9+
* [Vector search on Stack Overflow](https://stackoverflow.com/questions/tagged/redisearch)
10+
11+
### Blogs
12+
13+
* [Vector Databases 101](https://redis.io/blog/vector-databases-101/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials)
14+
15+
### Tutorials
16+
17+
* [Redis as a vector database quick start guide](https://redis.io/docs/latest/develop/get-started/vector-database/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials)
18+
* [Redis University course number RU402: Redis as a vector database](https://redis.io/university/courses/ru402/?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials)
19+

src/vss/vectors-adv-hash.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,3 @@ FT.SEARCH idx:bikes_vss
192192
SORTBY score
193193
DIALECT 2
194194
```
195-
196-
### Resources
197-
198-
[Redis as a vector database quick start guide](https://redis.io/docs/latest/develop/get-started/vector-database/)
199-
200-
[Redis University course number RU402](https://university.redis.com/): "Redis as a vector database".

src/vss/vectors-basic.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
## Vector search
2-
3-
Data is often unstructured, which means that it isn't described by a well-defined schema. Examples of unstructured data include text passages, images, videos, and music titles. One approach to dealing with unstructured data is to vectorize it. Vectorizing means mapping unstructured data to a flat sequence of numbers. Vectors represent the data embedded in an N-dimensional space. Machine learning models have facilitated the rise of embeddings as a widely embraced method for generating dense, low-dimensional vector representations. Given a suitable machine learning model, the generated embeddings can encapsulate complex patterns and semantic meanings inherent in data.
4-
5-
You can use Redis Stack as a vector database, which allows you to:
6-
7-
- Store vectors and the associated metadata within hashes or JSON documents.
8-
- Retrieve vectors.
9-
- Perform vector searches.
10-
111
The following JSON data model will be used in this tutorial. The data represents user preferences that a hypothetical bike shop might use to target ads to its customers.
122

133
```
@@ -90,9 +80,3 @@ Now you can perform your search using the byte string you obtained from Python a
9080
```redis Search
9181
FT.SEARCH idx:user_prefs "(*)=>[KNN 2 @vector $input_vector]" PARAMS 2 input_vector "fff?333?\xcd\xccL>" DIALECT 2
9282
```
93-
94-
### Resources
95-
96-
[Redis as a vector database quick start guide](https://redis.io/docs/latest/develop/get-started/vector-database/)
97-
98-
[Redis University course number RU402](https://university.redis.com/): "Redis as a vector database".

0 commit comments

Comments
 (0)