Class PineconeEmbeddingStore.Builder
java.lang.Object
dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore.Builder
- Enclosing class:
PineconeEmbeddingStore
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
createIndex
(PineconeIndexConfig createIndex) environment
(String environment) Deprecated, for removal: This API element is subject to removal in a future version.metadataTextKey
(String metadataTextKey) Deprecated, for removal: This API element is subject to removal in a future version.Please usecreateIndex(PineconeIndexConfig)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKey
- Parameters:
apiKey
- The Pinecone API key.
-
index
- Parameters:
index
- The name of the index (e.g., "test").
-
nameSpace
- Parameters:
nameSpace
- (Optional) Namespace. If not provided, "default" will be used.
-
metadataTextKey
- Parameters:
metadataTextKey
- (Optional) The key to find the text in the metadata. If not provided, "text_segment" will be used.
-
createIndex
- Parameters:
createIndex
- (Optional) The key to find the text in the metadata. If not provided, "text_segment" will be used.
-
environment
Deprecated, for removal: This API element is subject to removal in a future version.Please usecreateIndex(PineconeIndexConfig)
- Parameters:
environment
- The environment (e.g., "northamerica-northeast1-gcp").
-
projectId
Deprecated, for removal: This API element is subject to removal in a future version.Please usecreateIndex(PineconeIndexConfig)
- Parameters:
projectId
- The ID of the project (e.g., "19a129b"). This is not a project name. The ID can be found in the Pinecone URL: https://app.pinecone.io/organizations/.../projects/...:{projectId}/indexes.
-
build
-
createIndex(PineconeIndexConfig)