- a starter repo on how to create your first simple LLM application using LangChain.
- You can check out the complete explanation from the Langchain Documentation here
- langchain
- langchain-groq
- python-dotenv
- fastapi
- Prerequisites
- Git
- Command line familiarity
- Clone the Repository:
git clone https://github.com/NebeyouMusie/LangChain-Starter.git
- Create and Activate Virtual Environment (Recommended)
python -m venv venv
source venv/bin/activate
for Mac andvenv/bin/activate
for Windows
- Navigate to the projects directory
cd ./LangChain-Starter
using your terminal - Install Libraries:
pip install -r requirements.txt
- Enter your
GROQ_API_KEY
andLANGCHAIN_API_KEY
in theexample.env
file then change the file to.env
. You can get yourGROQ_API_KEY
from here and yourLANGCHAIN_API_KEY
from here in the settings page. - run
python serve.py
then, you should see the chain being served at http://localhost:8000 - run
python client.py
you'll see a response in your terminal
- Collaborations are welcomed ❤️
- I would like to thank LangChain
- LinkedIn: Nebeyou Musie
- Gmail: [email protected]
- Telegram: Nebeyou Musie