A simple application that allows users to interact with a conversational chatbot powered by LangChain. The application uses the Groq API to generate responses and leverages LangChain's ConversationBufferWindowMemory to maintain a history of the conversation to provide context for the chatbot's responses.
Conversational Interface: The application provides a conversational interface where users can ask questions or make statements, and the chatbot responds accordingly.
Contextual Responses: The application maintains a history of the conversation, which is used to provide context for the chatbot's responses.
LangChain Integration: The chatbot is powered by the LangChain API, which uses advanced natural language processing techniques to generate human-like responses.
You will need to store a valid Groq API Key as a secret to proceed with this example. You can generate one for free here.
You can fork and run this application on Replit or run it on the command line with python main.py