mckaywrigley / chatbot-ui

Come join the best place on the internet to learn AI skills. Use code "chatbotui" for an extra 20% off.
https://JoinTakeoff.com
MIT License
28.65k stars 7.97k forks source link

LangChain Wrapper #208

Closed slavakurilyak closed 9 months ago

slavakurilyak commented 1 year ago

Given the fast development pace of large language models (LLMs) and foundation models, it would be great to see a wrapper around LangChain.

Here is the JS/TS library: langchainjs by @hwchase17 Here is the Python library: langchain by @hwchase17

Here are the current LangChain features: langchain.com/features.html Here are the current LangChain integrations: langchain.com/integrations.html

Here are the general docs: docs.langchain.com Here are the Python docs: python.langchain.com Here are the JavaScript/TypeScript docs: js.langchain.com/docs

Here are the related issues: https://github.com/mckaywrigley/chatbot-ui/issues/149 and https://github.com/mckaywrigley/chatbot-ui/issues/123

tatsuiman commented 1 year ago

Given the fast development pace of large language models (LLMs) and foundation models, it would be great to see a wrapper around LangChain.

Here is the JS/TS library: langchainjs by @hwchase17 Here is the Python library: langchain by @hwchase17

Here are the current LangChain features: langchain.com/features.html Here are the current LangChain integrations: langchain.com/integrations.html

Here are the related issues: #149 and #123

The following is a sample implementation of Langchain's agent API as a proxy server following the openai API specification.

By doing so, the langchain agent can be invoked and the results returned to the front end when a request is made in the same way as for OAI.

https://github.com/tatsu-i/chatbot-sample

tatsuiman commented 1 year ago

A UI for langchain already exists, such as langflow, and we think it would be better to implement it as a backend compatible with OpenAI's API specification for future extensibility.