Skip to content

Remove deprecated scale_index method - #279

Merged
jhamon merged 1 commit into
mainfrom
jhamon/remove-scale-index
Jan 14, 2024
Merged

jhamon merged 1 commit into
mainfrom
jhamon/remove-scale-index

Conversation

@jhamon

@jhamon jhamon commented Jan 14, 2024

Copy link
Copy Markdown
Collaborator

Problem

Found this deprecated method while updating doc strings. It won't work in its current state, and it was described as deprecated in the Changelog 2 years ago.

Solution

  • Delete it 🗑️
  • Verified not used in notebook examples
  • Verified not used in readme-docs

@jhamon
jhamon requested a review from austin-denoble January 14, 2024 22:59
@jhamon
jhamon merged commit 557afd5 into main Jan 14, 2024
@jhamon
jhamon deleted the jhamon/remove-scale-index branch January 14, 2024 23:24
NishchayMahor pushed a commit to NishchayMahor/python-sdk-1 that referenced this pull request Sep 22, 2026
…econe-io#260) (pinecone-io#279)

Three failures a caller could only find by watching a request fail — or, in
the delete case, by watching it never finish — now fail in the client with a
message that says what to do. Sync and async lanes are identical, and the
parity suites hold them to the same exception type and text.

`upload_file(file_stream=...)` defaulted the multipart filename to `"upload"`
when `file_name` was omitted. The backend types an uploaded file by its
extension alone and never inspects the bytes (svc-knowledge-engine
src/ingest/utils.rs:434-451, pinecone-db@f6fd0a4019), so that call was a
guaranteed 400 no matter what was in the stream. A stream now requires a
`file_name` carrying an extension, and the refusal names the ones the server
accepts (.txt, .pdf, .json, .md, .docx). `file_path` uploads are untouched:
the basename already supplies the extension.

`update()` with both `instructions` and `metadata` omitted built an empty
patch body and the server answered 400 "No updates provided". It now refuses
before sending, and the docstring records why `None` cannot clear a field:
`None` means "leave this alone" and is dropped from the body, so clearing
takes the empty value (`instructions=""`, `metadata={}`).

`delete()` polled describe-until-404 with no terminal-state check while the
server-side reconciler only rescues Create operations, so a delete that
failed left the assistant parked and `timeout=None` never returned. Polling
now stops on the terminal failure statuses `_poll_until_ready` already
guards ("Failed", "InitializationFailed") with a PineconeError naming the
state, and treats a reported "Terminated" as the delete having finished.
"Terminating" stays a normal transient state — that is a delete in flight.

Existing stream-upload tests gain the `file_name` the guard now requires;
the integration suites already passed one everywhere.

Closes pinecone-io#260

Provenance: wave-1 assistant findings 9+16+19, epoch pinecone-io#87, backend
@f6fd0a4019 (svc-knowledge-engine src/ingest/utils.rs:434-451).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant