# Type object '\_Generative' has no attribute 'ollama'

**URL:** <https://forum.weaviate.io/t/type-object-generative-has-no-attribute-ollama/3083>\
**Category:** Support\
**Created:** [July 18, 2024, 7:27am UTC](https://forum.weaviate.io/t/type-object-generative-has-no-attribute-ollama/3083 "2024-07-18T07:27:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mariam](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/mariam/32/425_2.png) [@Mariam](https://forum.weaviate.io/u/Mariam)\
**Post date:** [July 18, 2024, 7:27am UTC](https://forum.weaviate.io/t/type-object-generative-has-no-attribute-ollama/3083/1 "2024-07-18T07:27:03Z")

</div>

Hi, I am encountering an error: `type object '_Generative' has no attribute 'ollama'`. According to the documentation, this feature is available in version 1.25.0, and I am using version 1.25.4. I installed Weaviate using Docker and enabled the modules with the following configuration: `ENABLE_MODULES: 'text2vec-ollama,generative-ollama'`.

Here is my code:

```python
 client.collections.create(
    collection_name,
    vectorizer_config=wvc.config.Configure.Vectorizer.text2vec_ollama(
        api_endpoint="http://host.docker.internal:11434",
        model="mxbai-embed-large"
    ),
    generative_config=wvc.config.Configure.Generative.ollama(
        api_endpoint="http://host.docker.internal:11434",
        model="llama3"
    )
)

```

Can you please help me resolve this issue?

---

<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:** [July 18, 2024, 1:47pm UTC](https://forum.weaviate.io/t/type-object-generative-has-no-attribute-ollama/3083/2 "2024-07-18T13:47:25Z")

</div>

Hi!

For technical questions, please, use the #Support category, as we have a template there that will ask to provide infos like server version, etc.

Can you paste the entire traceback of that code? Also, was this code for `client.collections.create` that raised this error?

I was able to create a collection with this exact same code…

Let me know those info so I can help you.

Thanks!

---

<div class="post-metadata">

**Author:** ![Mariam](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/mariam/32/425_2.png) [@Mariam](https://forum.weaviate.io/u/Mariam)\
**Post date:** [July 19, 2024, 11:36am UTC](https://forum.weaviate.io/t/type-object-generative-has-no-attribute-ollama/3083/3 "2024-07-19T11:36:03Z")

</div>

Hi, @DudaNogueira , yes issue was related to the client.collections.create, later I just ran same code in Jupiter Notebook collection was created maybe was issue in Pycharm.  
thanks
