Repository navigation
Commit c78e9bd
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
| 77 | + | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
0 commit comments