Skip to content

A starter repo on how to create your first simple LLM application using LangChain

License

Notifications You must be signed in to change notification settings

NebeyouMusie/LangChain-Starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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 and your LANGCHAIN_API_KEY from here 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

Contact

About

A starter repo on how to create your first simple LLM application using LangChain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages