Skip to content

dauvannam1804/RAG-With-Langchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RAG-With-Langchain

This repository contains the code for using a large language model to answer questions based on PDF documents, based on the insights shared by AI VIETNAM. The project is organized into several components to handle different aspects of the workflow, including PDF parsing, query processing, and response generation. Each component is designed to work together to enable efficient and accurate question-answering from PDF content.

Getting Started

Prerequisites

  • Python 3.4+
  • Anaconda
  • pip (Python package installer)

Installation

  1. Clone the repository:

    git clone https://github.com/dauvannam1804/RAG-With-Langchain.git
  2. Create a virtual environment:

    conda create -n rag python=3.10
  3. Activate a virtual environment:

    conda activate rag
  4. Activate a virtual environment:

    pip install -r requirements.txt

Running the API

  1. Navigate to the Rag-With-Langchain directory and use the command:

    uvicorn src.app:app --host "0.0.0.0" --port 5000 --reload

    Note: Use a different port if port 5000 is already in use.

  2. API after successful deployment:

    image

  3. The model results accessible through the built API:

    image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages