33 lines
634 B
Markdown
33 lines
634 B
Markdown
|
|
|
|
#Vector search index
|
|
In a non dedicated istance the vectorSearch index must be created manually from Mongo Atlas interface.
|
|
|
|
Create a new Search index called vector_index wit following definition
|
|
|
|
{
|
|
"fields": [
|
|
{
|
|
"numDimensions": 1536,
|
|
"path": "embedding",
|
|
"similarity": "cosine",
|
|
"type": "vector"
|
|
},
|
|
{
|
|
"path": "metadata.KsApplicatioName",
|
|
"type": "filter"
|
|
},
|
|
{
|
|
"path": "metadata.KsDoSource",
|
|
"type": "filter"
|
|
},
|
|
{
|
|
"path": "metadata.Source",
|
|
"type": "filter"
|
|
},
|
|
{
|
|
"path": "metadata.KsDoctype",
|
|
"type": "filter"
|
|
}
|
|
]
|
|
} |