Enable updating the pinecone vector store namespace

This commit is contained in:
Adam Bchouti
2023-12-28 22:16:42 -05:00
committed by Christian Tzolov
parent 806f5c4b20
commit 41885a8e62

View File

@@ -60,10 +60,19 @@ public class PineconeVectorStore implements VectorStore {
private final PineconeConnection pineconeConnection;
private final String pineconeNamespace;
private final ObjectMapper objectMapper;
private String pineconeNamespace;
/**
* Change the Index Name.
* @param pineconeNamespace The Azure VectorStore index name to use.
*/
public void setPineconeNamespace(String pineconeNamespace) {
Assert.hasText(pineconeNamespace, "The Pinecone namespace can not be empty.");
this.pineconeNamespace = pineconeNamespace;
}
/**
* Configuration class for the PineconeVectorStore.
*/