Giter Site home page Giter Site logo

langchain-groq-chainlit's Introduction

langchain-groq-chainlit

Simple Chat UI using Large Language Model Groq, LangChain and Chainlit

Tech stack being used

  • LLMs from Groq website.
  • LangChain as a Framework for LLM
  • LangSmith for developing, collaborating, testing, deploying, and monitoring LLM applications.
  • Chainlit 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 .envand input the environment variables from LangSmith. 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.

    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 โœŒ๏ธ

langchain-groq-chainlit's People

Contributors

samarthpandeydev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.