File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
content/develop/clients/nodejs Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,17 @@ try {
92
92
```
93
93
94
94
Next, create the index with the following schema:
95
- - ` content ` : Text field for the content to index
96
- - ` genre ` : Tag field representing the text's genre
97
- - ` embedding ` : Vector field with:
98
- - HNSW indexing
99
- - L2 distance metric
100
- - Float32 values
101
- - 768 dimensions (matching the embedding model)
95
+ - ` content ` : Text field for the content to index
96
+ - ` genre ` : [ Tag] ({{< relref "/develop/interact/search-and-query/advanced-concepts/tags" >}})
97
+ field representing the text's genre
98
+ - ` embedding ` : [ Vector] ({{< relref "/develop/interact/search-and-query/advanced-concepts/vectors" >}})
99
+ field with:
100
+ - [ HNSW] ({{< relref "/develop/interact/search-and-query/advanced-concepts/vectors#hnsw-index" >}})
101
+ indexing
102
+ - [ L2] ({{< relref "/develop/interact/search-and-query/advanced-concepts/vectors#distance-metrics" >}})
103
+ distance metric
104
+ - Float32 values
105
+ - 768 dimensions (matching the embedding model)
102
106
103
107
``` js
104
108
await client .ft .create (' vector_idx' , {
You can’t perform that action at this time.
0 commit comments