@@ -40,20 +40,27 @@ TIP: Refer to the xref:getting-started.adoc#dependency-management[Dependency Man
40
40
41
41
To connect to OpenSearch and use the `OpenSearchVectorStore`, you need to provide access details for your instance.
42
42
A simple configuration can either be provided via Spring Boot's `application.yml`,
43
+
43
44
[source,yaml]
44
45
----
45
46
spring:
46
- opensearch:
47
- uris: <opensearch instance URIs>
48
- username: <opensearch username>
49
- password: <opensearch password>
50
- indexName: <opensearch index name>
51
- mappingJson: <JSON mapping for opensearch index>
52
- # API key if needed, e.g. OpenAI
53
47
ai:
48
+ vectorstore:
49
+ opensearch:
50
+ uris: <opensearch instance URIs>
51
+ username: <opensearch username>
52
+ password: <opensearch password>
53
+ indexName: <opensearch index name>
54
+ mappingJson: <JSON mapping for opensearch index>
55
+ aws:
56
+ host: <aws opensearch host>
57
+ serviceName: <aws service name>
58
+ accessKey: <aws access key>
59
+ secretKey: <aws secret key>
60
+ region: <aws region>
61
+ # API key if needed, e.g. OpenAI
54
62
openai:
55
- api:
56
- key: <api-key>
63
+ apiKey: <api-key>
57
64
----
58
65
TIP: Check the list of xref:#_configuration_properties[configuration parameters] to learn about the default values and configuration options.
59
66
@@ -134,11 +141,11 @@ fields are stored and indexed. |
134
141
}
135
142
}
136
143
}
137
- |`spring.opensearch.aws.host`| Hostname of the OpenSearch instance. | -
138
- |`spring.opensearch.aws.service-name `| AWS service name for the OpenSearch instance. | -
139
- |`spring.opensearch.aws.access-key `| AWS access key for the OpenSearch instance. | -
140
- |`spring.opensearch.aws.secret-key `| AWS secret key for the OpenSearch instance. | -
141
- |`spring.opensearch.aws.region`| AWS region for the OpenSearch instance. | -
144
+ |`spring.ai.vectorstore. opensearch.aws.host`| Hostname of the OpenSearch instance. | -
145
+ |`spring.ai.vectorstore. opensearch.aws.serviceName `| AWS service name for the OpenSearch instance. | -
146
+ |`spring.ai.vectorstore. opensearch.aws.accessKey `| AWS access key for the OpenSearch instance. | -
147
+ |`spring.ai.vectorstore. opensearch.aws.secretKey `| AWS secret key for the OpenSearch instance. | -
148
+ |`spring.ai.vectorstore. opensearch.aws.region`| AWS region for the OpenSearch instance. | -
142
149
|===
143
150
144
151
=== Customizing OpenSearch Client Configuration
0 commit comments