langchain-ai / langchain

🦜🔗 Build context-aware reasoning applications
https://python.langchain.com
MIT License
95.45k stars 15.49k forks source link

why not found ernie bot from baidu in llms package? Thanks #10150

Closed mihayinoviki closed 1 year ago

mihayinoviki commented 1 year ago

Issue you'd like to raise.

No response

Suggestion:

No response

dosubot[bot] commented 1 year ago

🤖

Hello,

Thank you for your question. The Ernie bot from Baidu is not included in the LLMS package because it is a separate entity. The LLMS package is a collection of classes that provide access to various large language model (LLM) APIs and services. Its purpose is to facilitate the interaction with different language models from various providers, such as AI21, HuggingFaceHub, OpenAI, and many others.

The Ernie bot, on the other hand, is a part of the LangChain framework and is defined in the ErnieBotChat class in the ernie.py file. This class is used to interact with the Ernie bot and does not have any direct relation with the LLMS package. The Ernie bot is a large language model developed by Baidu and is used for processing Chinese data. It requires an ernie_client_id and ernie_client_secret to interact with the Ernie bot. These values can be set in the ErnieBotChat class or through environment variables.

In addition, the Ernie bot is also used in the LangChain framework as a text representation model in the ErnieEmbeddings class. This class is used to convert text into a vector form represented by numerical values, and is used in text retrieval, information recommendation, knowledge mining and other scenarios. The ErnieEmbeddings class is not a part of the LLMS package, but is a part of the LangChain framework.

I hope this answers your question. If you have any further questions, please feel free to ask.

Best regards, Dosu

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

mihayinoviki commented 1 year ago

thanks for you