Skip to content

Commit fa5b873

Browse files
RobinElysiachedim
authored andcommitted
Update mongodb.adoc (spring-projects#2809)
The vector-index-name in the MongoDB configuration options should be wrong, but it's okay when I'm trying index-name (no warning) Signed-off-by: qwp_p <[email protected]>
1 parent f34f5b1 commit fa5b873

File tree

1 file changed

+2
-2
lines changed
  • spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs

1 file changed

+2
-2
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/vectordbs/mongodb.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ spring:
9797
mongodb:
9898
initialize-schema: true
9999
collection-name: custom_vector_store
100-
vector-index-name: custom_vector_index
100+
index-name: custom_vector_index
101101
path-name: custom_embedding
102102
metadata-fields-to-filter: author,year
103103
----
@@ -110,7 +110,7 @@ Properties starting with `spring.ai.vectorstore.mongodb.*` are used to configure
110110

111111
|`spring.ai.vectorstore.mongodb.initialize-schema`| Whether to initialize the required schema | `false`
112112
|`spring.ai.vectorstore.mongodb.collection-name` | The name of the collection to store the vectors | `vector_store`
113-
|`spring.ai.vectorstore.mongodb.vector-index-name` | The name of the vector search index | `vector_index`
113+
|`spring.ai.vectorstore.mongodb.index-name` | The name of the vector search index | `vector_index`
114114
|`spring.ai.vectorstore.mongodb.path-name` | The path where vectors are stored | `embedding`
115115
|`spring.ai.vectorstore.mongodb.metadata-fields-to-filter` | Comma-separated list of metadata fields that can be used for filtering | empty list
116116
|===

0 commit comments

Comments
 (0)