GithubHelp home page GithubHelp logo

abrahul-107 / langchainandrag Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6 KB

An exploration of LangChain and RAG (Retrieval-Augmented Generation) for building intelligent applications

License: MIT License

Python 93.67% Dockerfile 6.33%

langchainandrag's Introduction

LangchainAndRAG

An exploration of LangChain and RAG (Retrieval-Augmented Generation) for building intelligent applications

LangchainAndRAG

An exploration of LangChain and RAG (Retrieval-Augmented Generation) for building intelligent applications. This repository includes a Streamlit app that generates restaurant names and menu items based on given recipes using LangChain with Together AI.

Requirements

  • Python 3.12
  • Docker (for containerized deployment)
  • Together AI API Key

Installation

Local Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/LangchainAndRAG.git
    cd LangchainAndRAG
    
  2. Create a virtual environment and activate it:

    python3.12 -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the required packages:

    pip install --upgrade pip
    pip install -r requirements.txt
    
  4. Create a .env file in the project root and add your Together AI API key:

    echo "API_KEY=your_actual_api_key_here" > .env
  5. Run the Streamlit app:

    streamlit run 01_langchainstreamlit.py
  6. Docker Setup

    • Build the Docker image:
    docker build -t streamlit-langchain-app .
    • Run the Docker container:
    docker run -p 8501:8501 -e API_KEY=your_actual_api_key_here 
    • streamlit-langchain-app.py.

Usage

Streamlit App Open your web browser and go to http://localhost:8501.

  • Enter a recipe in the text input field (e.g., "dal").

  • Click the "Generate" button to see the generated restaurant names and suggested menu items.

langchainandrag's People

Contributors

abrahul-107 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.