OpenChat is an everyday user chatbot console that simplifies the utilization of large language models. With the advancements in AI, the installation and usage of these models have become overwhelming. OpenChat aims to address this challenge by providing a two-step setup process to create a comprehensive chatbot console. It serves as a central hub for managing multiple customized chatbots.
Currently, OpenChat supports GPT models, and we are actively working on incorporating various open-source drivers that can be activated with a single click.
You can try it out on openchat.so
https://github.com/openchatai/OpenChat/assets/32633162/112a72a7-4314-474b-b7b5-91228558370c
Chinese Video Tutorial:https://www.bilibili.com/video/BV1YX4y1H7oN
We love hearing from you! Got any cool ideas or requests? We're all ears! So, if you have something in mind, give us a shout!
Make sure you have docker installed.
To begin, clone this Git repository:
git clone git@github.com:openchatai/OpenChat.git
Note: Starting July, Qdrant is our Preferred Open-Source Vector Store 🚀 No initial Pinecone registration required. To begin, delve into the comprehensive guide: Using Qdrant, provided in the following section.
common.env
file with the necessary keys:OPENAI_API_KEY=# Retrieve from your [openai.com](https://www.openai.com) account
PINECONE_API_KEY=# Obtain from the "API Keys" tab in [pinecone](https://www.pinecone.io)
PINECONE_ENVIRONMENT=# Obtain after creating your index in [pinecone](https://www.pinecone.io)
VECTOR_STORE_INDEX_NAME=# Obtain after creating your index in [pinecone](https://www.pinecone.io)
STORE=pinecone
USE_AZURE_OPENAI=true
: Whether to use the Azure OpenAI API.AZURE_OPENAI_API_KEY
: Your Azure OpenAI API key.AZURE_OPENAI_API_INSTANCE_NAME
: The name of your Azure OpenAI API instance.AZURE_OPENAI_API_COMPLETIONS_DEPLOYMENT_NAME
: The name of the Azure OpenAI API deployment for completions.AZURE_OPENAI_API_EMBEDDINGS_DEPLOYMENT_NAME
: The name of the Azure OpenAI API deployment for embeddings.If you want to switch from Pinecone to Qdrant, you can set the following environment variables:
OPENAI_API_KEY
= Your open ai keyQDRANT_URL
: The URL of the Qdrant server.STORE
: The store to use to store embeddings. Can be qdrant
or pinecone
.CHAIN_TYPE
= The type of chain to use: conversation_retrieval
| retrieval_qa
retrieval_qa
-> Learn moreconversation_retrieval
-> Learn moreIf you're experiencing slow internet speeds or if Docker builds are taking a long time, consider using the prebuilt images for your respective architecture. Simply comment out the unnecessary image line in the docker-compose.yml
file and uncomment the appropriate prebuilt image line.
Example:
# Mac environment
image: codebanesr/openchat_llm_server:edge_amd64
# Or, for Linux environment
image: codebanesr/openchat_llm_server:edge
Note: for pincone db, make sure that the dimension is equal to 1536
make install
or in case you are using Windows
make.bat
Sure, here's the modified text with the additional line you requested:
Start your adventure of contributing to and using OpenChat, now remade using the Python programming language. You can begin by following the instructions in the guide available here: OpenChat Python Guide.
Kindly be aware that the transition to the Python backend includes a significant alteration related to the Qdrant vector store, constituting a breaking change.
Once the installation is complete, you can access the OpenChat console at: http://localhost:8000
Discover the latest addition: llama2 support. Dive into this Guide to Harness LLAMA2 by Meta 📖🔮
We do our best to not introduce breaking changes, so far, you only need to git pull and run make install
whenever there is a new update.
This project is licensed under the MIT License.
Thanks goes to these wonderful people (emoji key):
Ikko Eltociear Ashimine 🤔 💻 |
Joshua Sindy 🐛 |
Erjan Kalybek 📖 |
WoahAI 🐛 💻 |
Tommy in Tongji 📖 |
codebane 💻 📖 |
lvalics 💻 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!