https://github.com/nebeyoumusie/langchain-starter
A starter repo on how to create your first simple LLM application using LangChain
https://github.com/nebeyoumusie/langchain-starter
fastapi groq-api langchain langchain-groq langserve langsmith llm-application python
Last synced: about 14 hours ago
JSON representation
A starter repo on how to create your first simple LLM application using LangChain
- Host: GitHub
- URL: https://github.com/nebeyoumusie/langchain-starter
- Owner: NebeyouMusie
- License: mit
- Created: 2024-08-23T07:53:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-23T08:36:50.000Z (about 1 year ago)
- Last Synced: 2024-12-10T14:08:57.166Z (10 months ago)
- Topics: fastapi, groq-api, langchain, langchain-groq, langserve, langsmith, llm-application, python
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LangChain Starter
- 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](https://python.langchain.com/v0.2/docs/tutorials/llm_chain/)## Libraries Used
- langchain
- langchain-groq
- python-dotenv
- fastapi## Installation
1. Prerequisites
- Git
- Command line familiarity
2. Clone the Repository: `git clone https://github.com/NebeyouMusie/LangChain-Starter.git`
3. Create and Activate Virtual Environment (Recommended)
- `python -m venv venv`
- `source venv/bin/activate` for Mac and `venv/bin/activate` for Windows
4. Navigate to the projects directory `cd ./LangChain-Starter` using your terminal
5. Install Libraries: `pip install -r requirements.txt`
6. Enter your `GROQ_API_KEY` and `LANGCHAIN_API_KEY` in the `example.env` file then change the file to `.env`. You can get your `GROQ_API_KEY` from [here](https://console.groq.com/keys) and your `LANGCHAIN_API_KEY` from [here](https://smith.langchain.com/) in the settings page.
7. run `python serve.py` then, you should see the chain being served at http://localhost:8000
8. run `python client.py` you'll see a response in your terminal## Collaboration
- Collaborations are welcomed ❤️## Acknowledgments
- I would like to thank [LangChain](https://python.langchain.com/)
## Contact
- LinkedIn: [Nebeyou Musie](https://www.linkedin.com/in/nebeyou-musie)
- Gmail: nebeyoumusie@gmail.com
- Telegram: [Nebeyou Musie](https://t.me/NebeyouMusie)