# Can't enable 'text-embedding-3-large'

**URL:** <https://community.openai.com/t/cant-enable-text-embedding-3-large/616021>\
**Category:** API\
**Tags:** embeddings\
**Created:** [February 6, 2024, 7:22am UTC](https://community.openai.com/t/cant-enable-text-embedding-3-large/616021 "2024-02-06T07:22:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikitamobile](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/nikitamobile/32/147712_2.png) [@nikitamobile](https://community.openai.com/u/nikitamobile)\
**Post date:** [February 6, 2024, 7:22am UTC](https://community.openai.com/t/cant-enable-text-embedding-3-large/616021/1 "2024-02-06T07:22:52Z")

</div>

The following error occurs when trying to switch the embedding model from the default ‘text-embedding-ada-002’ to thr ‘text-embedding-3-large’  
Error message: text-embedding-3-large’ is not a valid OpenAIEmbeddingModelType

```auto
import openai
from langchain_openai import OpenAI
from llama_index.embeddings import OpenAIEmbedding
from llama_index import ServiceContext
llm = OpenAI()
embed_model = OpenAIEmbedding(
model="text-embedding-3-large",
dimensions=512,

)
service_context = ServiceContext.from_defaults(embed_model=embed_model, llm=OpenAI())

```

---

<div class="post-metadata">

**Author:** ![Diet](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/diet/32/562749_2.png) [@Diet](https://community.openai.com/u/Diet)\
**Post date:** [February 6, 2024, 7:38am UTC](https://community.openai.com/t/cant-enable-text-embedding-3-large/616021/2 "2024-02-06T07:38:00Z")

</div>

> langchain\_openai

you’re not using the official openai API library! maybe it hasn’t been updated yet!

---

<div class="post-metadata">

**Author:** ![nikitamobile](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/nikitamobile/32/147712_2.png) [@nikitamobile](https://community.openai.com/u/nikitamobile)\
**Post date:** [February 6, 2024, 12:02pm UTC](https://community.openai.com/t/cant-enable-text-embedding-3-large/616021/3 "2024-02-06T12:02:38Z")

</div>

> [@nikitamobile](#):
>
> `text-embedding-3-large`

thank you! I have tried to import from langchain and it worked, however it tuned out that ADA is more effective. The answers privided out of embeddings ‘text-embedding-3-large’ appeared to be much more irrelevant

```auto
from langchain_openai import OpenAIEmbeddings
embed_model = OpenAIEmbeddings(model="text-embedding-3-large", dimensions=1536)

```

---

<div class="post-metadata">

**Author:** ![Diet](https://sea2.discourse-cdn.com/openai1/user_avatar/community.openai.com/diet/32/562749_2.png) [@Diet](https://community.openai.com/u/Diet)\
**Post date:** [February 6, 2024, 10:01pm UTC](https://community.openai.com/t/cant-enable-text-embedding-3-large/616021/4 "2024-02-06T22:01:26Z")

</div>

> [@nikitamobile](#):
>
> that ADA is more effective.

That’s interesting! What do your embedded documents look like?

ada focuses mostly on the start of the document, while text embedding 3 rips stuff out of the middle when the documents get too long.
