Skip to content

Commit c78e9bd

Browse files
committed
docs(inference): fix unstable import path in embeddings how-to
## Purpose The embeddings how-to showed importing EmbedModel via the internal `pinecone.client.inference` module path, which is not part of the stable public API and is subject to change without notice. ## Solution Replace `from pinecone.client.inference import Inference` / `Inference.EmbedModel.Multilingual_E5_Large` with the canonical `from pinecone import Pinecone, EmbedModel` / `EmbedModel.Multilingual_E5_Large`, which is the stable public export guaranteed by `pinecone.__all__`.
1 parent 2729328 commit c78e9bd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎docs/how-to/inference/embeddings.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,12 @@ Use the {class}`~pinecone.models.enums.EmbedModel` enum for tab-completion and t
6969
safety:
7070

7171
```python
72-
from pinecone import Pinecone
73-
from pinecone.client.inference import Inference
72+
from pinecone import Pinecone, EmbedModel
7473

7574
pc = Pinecone(api_key="your-api-key")
7675

7776
result = pc.inference.embed(
78-
model=Inference.EmbedModel.Multilingual_E5_Large,
77+
model=EmbedModel.Multilingual_E5_Large,
7978
inputs=["search query"],
8079
parameters={"input_type": "query"},
8180
)

0 commit comments

Comments
 (0)