# How to use self-hosted Weaviate (1.25.4) with Gemini

**URL:** <https://forum.weaviate.io/t/how-to-use-self-hosted-weaviate-1-25-4-with-gemini/2808>\
**Category:** Support\
**Tags:** integration\
**Created:** [June 26, 2024, 3:43am UTC](https://forum.weaviate.io/t/how-to-use-self-hosted-weaviate-1-25-4-with-gemini/2808 "2024-06-26T03:43:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omar\_Khalil](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/omar_khalil/32/1811_2.png) [@Omar\_Khalil](https://forum.weaviate.io/u/Omar_Khalil)\
**Post date:** [June 26, 2024, 3:43am UTC](https://forum.weaviate.io/t/how-to-use-self-hosted-weaviate-1-25-4-with-gemini/2808/1 "2024-06-26T03:43:46Z")

</div>

I am self-hosting Weaviate using docker-compose. I use LlamaIndex and Gemini to answer simple questions, yet Gemini always reply with “The provided context does not mention X”. after some research I found out that I need to setup Weaviate in a certain way to be able to use it with Gemini, and the resources provided are very-limited, especially when I use docker-compose configurator, I only found support for PaLM Models

I use Weaviate 1.25.4 and my application runs in a python 3.11 environment

I would really appreciate an example. Thank you in advance.

---

<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:** [June 26, 2024, 8:53pm UTC](https://forum.weaviate.io/t/how-to-use-self-hosted-weaviate-1-25-4-with-gemini/2808/2 "2024-06-26T20:53:47Z")

</div>

Hi @Omar_Khalil ! Welcome to our community 🤗

Usually, LlamaIndex will take care of the vectorization for you, unless you create the collection beforehand, specify the vectorizer and do not provide the vectors while ingestion your data.

Can you share some reproducible code so we can better understand and help you?

Thanks!

---

<div class="post-metadata">

**Author:** ![sebawita](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/sebawita/32/5_2.png) [@sebawita](https://forum.weaviate.io/u/sebawita)\
**Post date:** [June 27, 2024, 9:18am UTC](https://forum.weaviate.io/t/how-to-use-self-hosted-weaviate-1-25-4-with-gemini/2808/3 "2024-06-27T09:18:59Z")

</div>

Hi @Omar_Khalil,

The `text2vec-palm` and `generative-palm` modules handle Gemini and VertexAI models from Google. So, you can use these modules for Gemini 😉

We are working to rename these modules to `text2vec-google` and `generative-google`, as this is confusing for a lot of people.

---

<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:** [June 27, 2024, 12:45pm UTC](https://forum.weaviate.io/t/how-to-use-self-hosted-weaviate-1-25-4-with-gemini/2808/4 "2024-06-27T12:45:31Z")

</div>

By the way, check [our recipes](https://github.com/weaviate/recipes) for generative search.

You can find both examples here:

> <https://github.com/weaviate/recipes/blob/main/weaviate-features/generative-search/generative_search_palm.ipynb>
