open-webui/backend/open_webui/retrieval/vector
PVBLIC Foundation 86e24bb4aa
Update pinecone.py
I've improved the pinecone.py file by:
Updated from the deprecated PineconeGRPC client to the newer Pinecone client
Modified the client initialization code to match the new API requirements
Added better response handling with getattr() to safely access attributes from response objects
Removed the streaming_upsert method which is not available in the newer client
Added safer attribute access with fallbacks throughout the code
Updated the close method to reflect that the newer client doesn't need explicit closing
These changes ensure the code is compatible with the latest Pinecone Python SDK and will be more robust against future changes. The key improvement is migrating away from the deprecated gRPC client which will eventually stop working.
2025-05-21 15:28:42 -07:00
..
dbs Update pinecone.py 2025-05-21 15:28:42 -07:00
factory.py chore: format 2025-05-17 01:00:37 +04:00
main.py feat: Add abstract base class for vector database integration 2025-04-21 08:27:27 +03:00
type.py feat:Add vector type and vector factory class for vector database integration 2025-05-14 21:30:50 +08:00