# How to configure cohere as self hosted

**URL:** <https://forum.weaviate.io/t/how-to-configure-cohere-as-self-hosted/9759>\
**Category:** Support\
**Created:** [January 14, 2025, 10:30pm UTC](https://forum.weaviate.io/t/how-to-configure-cohere-as-self-hosted/9759 "2025-01-14T22:30:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djjeffr](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/djjeffr/32/1301_2.png) [@djjeffr](https://forum.weaviate.io/u/djjeffr)\
**Post date:** [January 14, 2025, 10:30pm UTC](https://forum.weaviate.io/t/how-to-configure-cohere-as-self-hosted/9759/1 "2025-01-14T22:30:46Z")

</div>

### Description

How to configure cohere as self hosted instead of public cohere url

---

<div class="post-metadata">

**Author:** ![Shahin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/shahin/32/7944_2.png) [@Shahin](https://forum.weaviate.io/u/Shahin)\
**Post date:** [January 16, 2025, 10:19am UTC](https://forum.weaviate.io/t/how-to-configure-cohere-as-self-hosted/9759/2 "2025-01-16T10:19:04Z")

</div>

Hi @djjeffr,

Indeed, there are several model providers that you can host locally with Weaviate. Here’s a list of options available for local deployment:

• [GPT4All (locally hosted)](https://weaviate.io/developers/weaviate/model-providers/gpt4all)

• [KubeAI (Locally hosted)](https://weaviate.io/developers/weaviate/model-providers/kubeai)

• [Hugging Face (locally hosted)](https://weaviate.io/developers/weaviate/model-providers/transformers)

• [Meta ImageBind (locally hosted)](https://weaviate.io/developers/weaviate/model-providers/imagebind)

• [Ollama (locally hosted)](https://weaviate.io/developers/weaviate/model-providers/ollama)

Additionally, our integration with Cohere is available at:

> **[Cohere + Weaviate | Weaviate](https://weaviate.io/developers/weaviate/model-providers/cohere)**
>
> Cohere offers a wide range of models for natural language processing and generation. Weaviate seamlessly integrates with Cohere's APIs, allowing users to leverage Cohere's models directly from the Weaviate database.

These links should give you a good starting point to explore.

Best regards,  
Mohamed Shahin  
Weaviate Support Engineer

---

<div class="post-metadata">

**Author:** ![djjeffr](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/djjeffr/32/1301_2.png) [@djjeffr](https://forum.weaviate.io/u/djjeffr)\
**Post date:** [January 16, 2025, 8:41pm UTC](https://forum.weaviate.io/t/how-to-configure-cohere-as-self-hosted/9759/3 "2025-01-16T20:41:02Z")

</div>

Still doesn’t say how to connect to a locally hosted cohere? Why is cohere api url hard coded?

The reranker-cohere code has cohereAPIurl hard coded, see [weaviate/modules/reranker-cohere/clients/ranker.go at 3cbf49a059a36b6c084b8f0ca95392e81122b185 · weaviate/weaviate · GitHub](https://github.com/weaviate/weaviate/blob/3cbf49a059a36b6c084b8f0ca95392e81122b185/modules/reranker-cohere/clients/ranker.go#L49-L58)

The text2vec-cohere code allows the cohereAPIurl to be passed in, could the reranker-cohere code be changed to allow APIurl to be passed in.
