The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[minor] Pebblo: Support for new Pinecone class PineconeVectorStore (#28253)
Rajendra Kadam242fee11be2a
diff --git a/libs/community/langchain_community/chains/pebblo_retrieval/enforcement_filters.py b/libs/community/langchain_community/chains/pebblo_retrieval/enforcement_filters.pyindex 570cbdfa78..579b86acb0 100644--- a/libs/community/langchain_community/chains/pebblo_retrieval/enforcement_filters.py+++ b/libs/community/langchain_community/chains/pebblo_retrieval/enforcement_filters.py@@ -27,8 +27,9 @@ logger = logging.getLogger(__name__)PINECONE = "Pinecone"QDRANT = "Qdrant"PGVECTOR = "PGVector"+PINECONE_VECTOR_STORE = "PineconeVectorStore"-SUPPORTED_VECTORSTORES = {PINECONE, QDRANT, PGVECTOR}+SUPPORTED_VECTORSTORES = {PINECONE, QDRANT, PGVECTOR, PINECONE_VECTOR_STORE}def clear_enforcement_filters(retriever: VectorStoreRetriever) -> None:@@ -505,7 +506,7 @@ def _set_identity_enforcement_filter(of the retriever based on the type of the vectorstore."""search_kwargs = retriever.search_kwargs- if retriever.vectorstore.__class__.__name__ == PINECONE:+ if retriever.vectorstore.__class__.__name__ in [PINECONE, PINECONE_VECTOR_STORE]:_apply_pinecone_authorization_filter(search_kwargs, auth_context)elif retriever.vectorstore.__class__.__name__ == QDRANT:_apply_qdrant_authorization_filter(search_kwargs, auth_context)