open-webui/backend
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
..
data
open_webui Update pinecone.py 2025-05-21 15:28:42 -07:00
.dockerignore
.gitignore
dev.sh
requirements.txt use unquote_user in peewee 3.17.10 2025-05-20 15:18:32 -04:00
start_windows.bat refac: web/rag config 2025-04-12 16:33:36 -07:00
start.sh Fix: Use dynamic Python command to run uvicorn and support pyenv setups. 2025-04-29 09:14:23 +01:00