https://github.com/samarthpandeydev/langchain-groq-chainlit
https://github.com/samarthpandeydev/langchain-groq-chainlit
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/samarthpandeydev/langchain-groq-chainlit
- Owner: samarthpandeydev
- Created: 2024-05-04T11:12:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-05T17:50:38.000Z (about 2 years ago)
- Last Synced: 2025-07-02T21:04:45.078Z (12 months ago)
- Language: Python
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# langchain-groq-chainlit
Simple Chat UI using Large Language Model Groq, LangChain and Chainlit
### Tech stack being used
- LLMs from [Groq](https://groq.com/) website.
- [LangChain](https://www.langchain.com/) as a Framework for LLM
- [LangSmith](https://smith.langchain.com/) for developing, collaborating, testing, deploying, and monitoring LLM applications.
- [Chainlit](https://docs.chainlit.io/langchain) for deploying.
## System Requirements
You must have Python 3.10 or later installed. Earlier versions of python may not compile.
## Steps to Replicate
1. Fork this repository (optional) and clone it locally.
```
git clone https://github.com/samarthpandeydev/langchain-groq-chainlit.git
cd langchain-groq-chainlit
```
2. Create a virtualenv and activate it.
```
python3 -m venv .venv && source .venv/bin/activate
```
3. OPTIONAL - Rename example.env to .env with `cp example.env .env`and input the environment variables from [LangSmith](https://smith.langchain.com/). You need to create an account in LangSmith website if you haven't already. Also, you need to get api key for groq from this [link](https://console.groq.com/keys).
```
LANGCHAIN_TRACING_V2=true
LANGCHAIN_ENDPOINT="https://api.smith.langchain.com"
LANGCHAIN_API_KEY="your-api-key"
LANGCHAIN_PROJECT="your-project"
GROQ_API_KEY="YOUR_GROQ_API_KEY"
```
4. Run the following command in the terminal to install necessary python packages:
```
pip install -r requirements.txt
```
5. Run the following command in your terminal to start the chat UI:
```
chainlit run langchain_groq_chainlit.py
```
## Disclaimer
This is test project and is presented in my youtube video to learn new stuffs. It is not meant to be used in production as it's not production ready. You can modify the code and use for your usecases ✌️