Skip to content

hssahdev/pdf_reader_ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Reader AI with LangChain, Ollama, FastAPI Backend and ReactJS Frontend

This project is a chatbot application that interacts with PDF documents using LangChain and Ollama for local natural language processing capabilities. It also features a frontend built using ReactJS for a user-friendly interface.

Features

  • PDF Interaction: The chatbot allows users to interact with PDF documents, extracting information and performing tasks based on natural language commands.
  • LangChain Integration: LangChain provides language understanding capabilities, allowing the chatbot to interpret user commands and extract relevant information from PDFs.
  • ReactJS Frontend: The frontend interface is built using ReactJS, providing a modern and responsive user experience.
  • Local LLaMa: Leverages Meta's open source LLM and Ollama to power local inference.
  • Vector DB: Has a standalone Qdrant vector DB to store documents and efficiently query vectors to get meaningful context.
  • Scalable FastAPI backend: Engineered a stateless REST FastAPI backend to handle async requests (upload files and infer LLM). Horizantally scalable to handle numerous requests.

Usage

  1. Clone the Repository: Clone this repository to your local machine:

    git clone https://github.com/hssahdev/pdf_reader_ai
  2. Navigate to Project Directory: Enter the project directory:

    cd pdf_reader_ai
  3. Set Up Ollama Server: Download Ollama and make sure its running in background. You also need to download the LLM model Llama

    ollama run llama2    
  4. Start Docker Compose: Run the Docker Compose configuration to start the services:

    docker-compose up
  5. Access the Application: Once the services are up and running, you can access the application via your web browser. By default, the frontend should be accessible at http://localhost:5173.

Configuration

  • docker-compose.yaml: This file defines the services required for the project, including LangChain, Ollama, and the frontend ReactJS application.

Dependencies

  • LangChain: A natural language processing library used for language understanding and document interaction.
  • Ollama: A conversational AI platform that enhances the chatbot's conversational abilities.
  • ReactJS: A JavaScript library for building user interfaces, used for the frontend of the application.

Demo

IMAGE ALT TEXT

Contributing

Contributions to this project are welcome! Feel free to fork the repository and submit pull requests with any enhancements or fixes.

License

This project is licensed under the MIT License.

Credits

This project was created by [Your Name] and is maintained by the contributors. Special thanks to the developers of LangChain, Ollama, and ReactJS for their amazing tools and libraries.

About

pdf_reader_llm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published