This project is designed to showcase a comprehensive chatbot application that leverages OpenAI's GPT-4 model, along with the latest capabilities of Langchain, including Langchain Expression Language and LangGraph, integrated with a Gradio interface for easy interaction.
It's encapsulated in a Docker container for ease of deployment and scalability.
git clone <repository-link>
cd <repository-name>
docker build -t hello-sajal-app .
This command builds a Docker image named hello-sajal-app based on the instructions in the Dockerfile.
After building the image, you can run the application using the following command:
docker run -p 7860:7860 gradio-openai-app
This command runs the container and maps port 7860 of the container to port 7860 on your host, allowing you to access the Gradio application through your web browser.
Both the docker container, and gradio app follow the flow:
The application heavily utilizes langchain for prompts, chains, tools, LLM function calling and flow engineering, demonstrating some of the advanced use cases.
High level architecture:
Each incoming message from the user goes through modules for intent recognition, RAG, corrective RAG, and smalltalk chain.
The following diagram represents the flow of each incoming user message to the chat app: