Skip to content

Commit 0eb00a2

Browse files
authored
Merge pull request #73 from acatav/change-openai-model-default
Bump version and change openai default model
2 parents 3996017 + a2b396a commit 0eb00a2

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ encoder.encode_queries(["Who jumped over the lazy dog?"])
158158

159159
When using the `OpenAIEncoder`, you need to provide an API key for the OpenAI API, and store it in the `OPENAI_API_KEY` environment variable before you import the encoder.
160160

161-
By default the encoder will use `text-embedding-ada-002` as recommended by OpenAI. You can also specify a different model name using the `model_name` parameter.
161+
By default the encoder will use `text-embedding-3-small` as recommended by OpenAI. You can also specify a different model name using the `model_name` parameter.
162162
#### Usage
163163
```python
164164
from pinecone_text.dense import OpenAIEncoder
165165

166-
encoder = OpenAIEncoder() # defaults to the recommended model - "text-embedding-ada-002"
166+
encoder = OpenAIEncoder() # defaults to the recommended model - "text-embedding-3-small"
167167

168168
encoder.encode_documents(["The quick brown fox jumps over the lazy dog"])
169169
# [[0.21, 0.38, 0.15, ...]]
@@ -186,7 +186,7 @@ By default the encoder will use `jina-embeddings-v2-base-en`. You can also speci
186186
```python
187187
from pinecone_text.dense import JinaEncoder
188188

189-
encoder = JinaEncoder() # defaults to the recommended model - "text-embedding-ada-002"
189+
encoder = JinaEncoder()
190190

191191
encoder.encode_documents(["The quick brown fox jumps over the lazy dog"])
192192
# [[-0.62586284, -0.54578537, 0.5570845, ...]]

pinecone_text/dense/openai_encoder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class OpenAIEncoder(BaseDenseEncoder):
3737

3838
def __init__(
3939
self,
40-
model_name: str = "text-embedding-ada-002",
40+
model_name: str = "text-embedding-3-small",
4141
*,
4242
dimension: Optional[int] = None,
4343
**kwargs: Any,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "pinecone-text"
3-
version = "0.7.2"
3+
version = "0.8.0"
44
description = "Text utilities library by Pinecone.io"
55
authors = ["Pinecone.io"]
66
readme = "README.md"

0 commit comments

Comments
 (0)