Skip to content

Commit 529fbc5

Browse files
authored
fix(bedrock): create index with faiss and l2 (#350)
1 parent 5508038 commit 529fbc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lambda/opensearch-serverless-custom-resources/custom_resources/opensearch_index.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def create_mapping(
118118
"type": "knn_vector",
119119
"dimension": dimensions,
120120
"method": {
121-
"engine": "nmslib",
122-
"space_type": "cosinesimil",
121+
"engine": "faiss",
122+
"space_type": "l2",
123123
"name": "hnsw",
124124
"parameters": {},
125125
},

0 commit comments

Comments
 (0)