Skip to content

Add inference plugin and tests - #370

Merged
jhamon merged 2 commits into
release-candidate/2024-07from
jhamon/add-inference-plugin
Jul 19, 2024
Merged

jhamon merged 2 commits into
release-candidate/2024-07from
jhamon/add-inference-plugin

Conversation

@jhamon

@jhamon jhamon commented Jul 19, 2024 •

Copy link
Copy Markdown
Collaborator

Problem

We want to ship inference as part of the core SDK

Solution

Add a dependency on v1.0.2 of the inference plugin, which includes a recent fix to plugin installation for use with the GRPC client.

Usage

The plugin should automatically be installed and available for usage.

from pinecone import Pinecone

pc = Pinecone(api_key='key')

embedding_model = "multilingual-e5-large"
embeddings = pc.inference.embed(
    model=embedding_model,
    inputs=["The quick brown fox jumps over the lazy dog.", "lorem ipsum"],
    parameters={"input_type": "query", "truncate": "END"},
)

Type of Change

  • New feature (non-breaking change which adds functionality)

Test Plan

See tests passing.

@jhamon
jhamon marked this pull request as ready for review July 19, 2024 15:28
@jhamon
jhamon requested a review from austin-denoble July 19, 2024 15:28

@austin-denoble austin-denoble left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@jhamon
jhamon merged commit ddfa538 into release-candidate/2024-07 Jul 19, 2024
@jhamon
jhamon deleted the jhamon/add-inference-plugin branch July 19, 2024 15:34
NishchayMahor pushed a commit to NishchayMahor/python-sdk-1 that referenced this pull request Sep 22, 2026
…inecone-io#370) (pinecone-io#432)

A `Raises:` entry whose description began with a parenthesised status code
never rendered as intended. docutils treats `(403)` at the start of a field
body as an ordered-list *enumerator*, so the entry became a nested
`<ol start="403">` and the status code turned into a list marker living in an
HTML attribute instead of the prose. `sphinx -W` passed before and after.

Six sites, all on the admin surface. Four move the code to the end of the
sentence, matching the landed trailing-code precedent next door
(`... creating an API key (402).`). Two drop it, because the same entry
already states the code in prose ("quota exhaustion ... is a **403, not a
429**"), so a trailing copy would only duplicate it.

Verified by reading the rendered HTML back: the `<ol start=NNN>` signature
went from six occurrences to zero across the whole built docs tree, and the
harness was first run against the pre-fix build to prove it detects the bug.
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.

2 participants