@@ -22,6 +22,7 @@ To set up `PineconeVectorStore`, gather the following details from your Pinecone
22
22
[NOTE]
23
23
====
24
24
This information is available to you in the Pinecone UI portal.
25
+ The namespace support is not available in the Pinecone free tier.
25
26
====
26
27
27
28
== Auto-configuration
@@ -154,8 +155,7 @@ NOTE: These filter expressions are converted into the equivalent Pinecone filter
154
155
155
156
== Manual Configuration
156
157
157
- If you prefer to configure the `PineconeVectorStore` manually, you can do so by creating a `PineconeVectorStoreConfig` bean
158
- and passing it to the `PineconeVectorStore` constructor.
158
+ If you prefer to configure `PineconeVectorStore` manually, you can do so by using the `PineconeVectorStore#Builder`.
159
159
160
160
Add these dependencies to your project:
161
161
@@ -189,11 +189,14 @@ To configure Pinecone in your application, you can use the following setup:
189
189
----
190
190
@Bean
191
191
public VectorStore pineconeVectorStore(EmbeddingModel embeddingModel) {
192
- return PineconeVectorStore
193
- .builder(embeddingModel, PINECONE_API_KEY, PINECONE_PROJECT_ID, PINECONE_ENVIRONMENT, PINECONE_INDEX_NAME)
194
- .namespace(PINECONE_NAMESPACE) // the free tier doesn't support namespaces.
195
- .contentFieldName(CUSTOM_CONTENT_FIELD_NAME) // optional field to store the original content. Defaults to `document_content`
196
- .build();
192
+ return PineconeVectorStore.builder(embeddingModel)
193
+ .apiKey(PINECONE_API_KEY)
194
+ .projectId(PINECONE_PROJECT_ID)
195
+ .environment(PINECONE_ENVIRONMENT)
196
+ .indexName(PINECONE_INDEX_NAME)
197
+ .namespace(PINECONE_NAMESPACE) // the free tier doesn't support namespaces.
198
+ .contentFieldName(CUSTOM_CONTENT_FIELD_NAME) // optional field to store the original content. Defaults to `document_content`
199
+ .build();
197
200
}
198
201
----
199
202
0 commit comments