Repository: explodinggradients/ragas
Issue: can I use doubao? i have found qwen but can not find  doubao in chat_models ,doubao is cheap and performance as gpt-4 in chinese
Root cause: Documentation Deficiency

[ ] I checked the [documentation](https://docs.ragas.io/) and related resources and couldn't find an answer to my question.

**Your Question**
what is unclear to you? What would you like to know?

**Code Examples**
This community speaks code. Share your code snippets to help us understand your question better.

**Additional context**
Anything else you want to share with us? 


<!-- Greeting -->
Hello @hellostronger! I'm here to assist you with any issues or questions you may have while waiting for a human maintainer. Let's tackle this together!

<!-- Answer -->
Currently, the `ragas` repository does not include the Doubao model in the `chat_models` directory. To integrate Doubao or any new model, you would need to follow these steps:

1. **Dependencies**: Ensure you have the necessary dependencies listed in the `pyproject.toml` file, including `langchain`, `langchain_openai`, and others <sup>[[1]](https://github.com/explodinggradients/ragas/blob/main/pyproject.toml)</sup><sup>[[2]](https://github.com/explodinggradients/ragas/blob/main/src/ragas/integrations/langchain.py)</sup>.

2. **Update Configuration**: Add Doubao to the `MULTIPLE_COMPLETION_SUPPORTED` list in the `src/ragas/llms/base.py` file to indicate that it supports n-completion <sup>[[3]](https://github.com/explodinggradients/ragas/blob/main/src/ragas/llms/base.py)</sup>.

3. **Wrapper Class**: Create a wrapper class for Doubao similar to `LangchainLLMWrapper` or `LlamaIndexLLMWrapper` to handle the integration details <sup>[[3]](https://github.com/explodinggradients/ragas/blob/main/src/ragas/llms/base.py)</sup>.

4. **Evaluation**: Use the `evaluate` function to test and validate the new model once integrated <sup>[[4]](https://github.com/explodinggradients/ragas/blob/main/src/ragas/evaluation.py)</sup><sup>[[5]](https://github.com/explodinggradients/ragas/blob/main/docs/howtos/integrations/tonic-validate.ipynb)</sup><sup>[[6]](https://github.com/explodinggradients/ragas/blob/main/tests/e2e/test_fullflow.py)</sup>.

For detailed examples, you can refer to the existing `LangchainLLMWrapper` and `LlamaIndexLLMWrapper` classes in the repository <sup>[[3]](https://github.com/explodinggradients/ragas/blob/main/src/ragas/llms/base.py)</sup>.


<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*


this documentation should help @hellostronger [Bring Your Own LLMs and Embeddings | Ragas](https://docs.ragas.io/en/stable/howtos/customisations/bring-your-own-llm-or-embs.html)?



It seems the issue was answered, closing this now.

> this documentation should help [@hellostronger](https://github.com/hellostronger) [Bring Your Own LLMs and Embeddings | Ragas](https://docs.ragas.io/en/stable/howtos/customisations/bring-your-own-llm-or-embs.html)?

The link is invalid now 

> > this documentation should help [@hellostronger](https://github.com/hellostronger) [Bring Your Own LLMs and Embeddings | Ragas](https://docs.ragas.io/en/stable/howtos/customisations/bring-your-own-llm-or-embs.html)?
> 
> The link is invalid now

This doc can be refered, https://github.com/explodinggradients/ragas/blob/cb63a8266b80fcb5715b06fc97d1f9165bc49f93/docs/getstarted/rag_eval.md#basic-setup