You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vsb/databases/pinecone/pinecone.py
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -199,7 +199,7 @@ def __init__(
199
199
f"PineconeDB: Index '{self.index_name}' does not exist. Multi-namespace mode requires an existing populated index. Please create the index first or use single-namespace mode."
200
200
)
201
201
raiseStopUser()
202
-
202
+
203
203
logger.info(
204
204
f"PineconeDB: Specified index '{self.index_name}' was not found, or the "
205
205
f"specified API key cannot access it. Creating new index '{self.index_name}'."
@@ -242,22 +242,22 @@ def __init__(
242
242
243
243
# Initialize namespaces list (empty for both modes to avoid AttributeError)
244
244
self.namespaces= []
245
-
245
+
246
246
# Multi-namespace mode: discover and validate namespaces
247
247
ifself.multi_namespace:
248
248
ifself.created_index:
249
249
logger.critical(
250
250
f"PineconeDB: Cannot use multi_namespace mode with a newly created index. Index '{self.index_name}' must already exist and be populated."
251
251
)
252
252
raiseStopUser()
253
-
253
+
254
254
self.namespaces=self._discover_all_namespaces()
255
255
ifnotself.namespaces:
256
256
logger.critical(
257
257
f"PineconeDB: No populated namespaces found in index '{self.index_name}'. Multi-namespace mode requires at least one namespace with records."
0 commit comments