Open paulz opened 6 months ago
tried again:
0%| | 0/32 [00:01<?, ?it/s]
---------------------------------------------------------------------------
SparseValuesMissingKeysError Traceback (most recent call last)
Cell In[16], line 30
22 vectors.append({
23 'id': _id,
24 'sparse_values': sparse,
25 'values': dense,
26 'metadata': metadata
27 })
29 # upload the documents to the new hybrid index
---> 30 index.upsert(vectors=vectors)
32 # show index description after uploading the documents
33 index.describe_index_stats()
File ~/workspace/third-party/pinecone/examples/venv/lib/python3.11/site-packages/pinecone/utils/error_handling.py:10, in validate_and_convert_errors.<locals>.inner_func(*args, **kwargs)
7 @wraps(func)
8 def inner_func(*args, **kwargs):
9 try:
---> 10 return func(*args, **kwargs)
11 except MaxRetryError as e:
12 if isinstance(e.reason, ProtocolError):
File ~/workspace/third-party/pinecone/examples/venv/lib/python3.11/site-packages/pinecone/data/index.py:171, in Index.upsert(self, vectors, namespace, batch_size, show_progress, **kwargs)
164 raise ValueError(
165 "async_req is not supported when batch_size is provided."
166 "To upsert in parallel, please follow: "
167 "https://docs.pinecone.io/docs/insert-data#sending-upserts-in-parallel"
168 )
170 if batch_size is None:
--> 171 return self._upsert_batch(vectors, namespace, _check_type, **kwargs)
173 if not isinstance(batch_size, int) or batch_size <= 0:
174 raise ValueError("batch_size must be a positive integer")
Is this a new bug?
Current Behavior
Expected Behavior
example notebooks should work without error
Steps To Reproduce
Relevant log output
Additional Context
No response