Class PineconeEmbeddingStore

java.lang.Object
dev.langchain4j.store.embedding.pinecone.PineconeEmbeddingStore
All Implemented Interfaces:
EmbeddingStore<TextSegment>

public class PineconeEmbeddingStore extends Object implements EmbeddingStore<TextSegment>
Represents a Pinecone index as an embedding store.

Current implementation assumes the index uses the cosine distance metric.

WARNING! There is a known bug: Pinecone stores all numbers as floating-point values, which means Integer and Long values (e.g., 1746714878034235396) stored in Metadata may be corrupted and returned as incorrect numbers! Possible workaround: convert integer/double values to String before storing them in Metadata. Please note that in this case metadata filtering might not work properly!