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 {
9292```
9393
9494Next, 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)
102106
103107``` js
104108await client .ft .create (' vector_idx' , {
You can’t perform that action at this time.
0 commit comments