# HuggingFace Embeddings not getting generated on weaviate

**URL:** <https://forum.weaviate.io/t/huggingface-embeddings-not-getting-generated-on-weaviate/1101>\
**Category:** General\
**Created:** [December 15, 2023, 12:29pm UTC](https://forum.weaviate.io/t/huggingface-embeddings-not-getting-generated-on-weaviate/1101 "2023-12-15T12:29:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wolv3rine1304](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/wolv3rine1304/32/755_2.png) [@wolv3rine1304](https://forum.weaviate.io/u/wolv3rine1304)\
**Post date:** [December 15, 2023, 12:29pm UTC](https://forum.weaviate.io/t/huggingface-embeddings-not-getting-generated-on-weaviate/1101/1 "2023-12-15T12:29:49Z")

</div>

I get the below error while uploading my data on Weaviate using HuggingFace API to generate the embeddings.

Code:

```auto
vector_store = WeaviateVectorStore(
                    weaviate_client=client, 
                    index_name="LlamaIndex", 
                    text_key="text"
                )
storage_context = StorageContext.from_defaults(vector_store=vector_store)
index = VectorStoreIndex.from_documents(
            documents, 
            storage_context=storage_context, 
            show_progress=True
        )

```

Error:

 ![Screenshot 2023-12-15 175728](https://canada1.discourse-cdn.com/flex027/uploads/weaviate/original/1X/f66d4198d372425af245046c6c5baebeff8358da.png)

What changes should I make to resolve the error?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [December 18, 2023, 9:18pm UTC](https://forum.weaviate.io/t/huggingface-embeddings-not-getting-generated-on-weaviate/1101/2 "2023-12-18T21:18:46Z")

</div>

Hi @wolv3rine1304 ! Welcome to our community 🤗

I have not played with llamaindex too much by now, but I believe that you never specify the llm.

So llamaindex is assuming that you will be using openai.

Check here for example, how it sepecifies cohere as the chosen llm:

[https://docs.llamaindex.ai/en/stable/examples/embeddings/cohereai.html#load-data](https://docs.llamaindex.ai/en/stable/examples/embeddings/cohereai.html#load-data)

Let me know if this helps 🙂

---

<div class="post-metadata">

**Author:** ![wolv3rine1304](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/wolv3rine1304/32/755_2.png) [@wolv3rine1304](https://forum.weaviate.io/u/wolv3rine1304)\
**Post date:** [December 19, 2023, 10:03am UTC](https://forum.weaviate.io/t/huggingface-embeddings-not-getting-generated-on-weaviate/1101/3 "2023-12-19T10:03:37Z")

</div>

I moved on to using langchain but will definitely give this a try. Thanks for the reply.
