Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add inference plugin and tests #370

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

jhamon
Copy link
Collaborator

@jhamon jhamon commented Jul 19, 2024

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
Copy link
Contributor

@austin-denoble austin-denoble left a comment

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
85 checks passed
@jhamon jhamon deleted the jhamon/add-inference-plugin branch July 19, 2024 15:34
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