Skip to content

Latest commit

Β 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“„ ask-pdf

πŸ€– A simple RAG (Retrieval-Augmented Generation) application for asking questions about PDF documents.

Upload your PDF πŸ“„, let the application process it βš™οΈ, and ask questions about its content πŸ’¬.


✨ Features

  • πŸ“€ Upload one or multiple PDF documents
  • βš™οΈ Asynchronous document processing
  • πŸ“‘ PDF text extraction and chunking
  • 🧠 Generate embeddings from document chunks
  • πŸ” Semantic search using vector database
  • πŸ’¬ Ask questions about uploaded documents
  • πŸ“‘ Real-time document processing progress
  • πŸ“– Built-in PDF viewer
  • πŸ“ Navigate directly to specific PDF pages
  • πŸ—ƒοΈ Store document embeddings and metadata in Qdrant

πŸ—οΈ Architecture

                    πŸ“„ PDF
                      β”‚
                      β–Ό
              πŸ“€ Upload Document
                      β”‚
                      β–Ό
                 ⚑ FastAPI
                      β”‚
                      β–Ό
                πŸ“‹ Redis Queue
                      β”‚
                      β–Ό
             βš™οΈ Background Worker
                      β”‚
              β”Œβ”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”
              β–Ό                β–Ό
        πŸ“‘ Extract Text     πŸ“‘ Progress
              β”‚                β”‚
              β–Ό                β–Ό
          βœ‚οΈ Chunking       WebSocket
              β”‚                β”‚
              β–Ό                β–Ό
         🧠 Embedding       πŸ’» React
              β”‚
              β–Ό
           πŸ—ƒοΈ Qdrant
              β”‚
              β”‚
      πŸ’¬ User Question
              β”‚
              β–Ό
         🧠 Query Embedding
              β”‚
              β–Ό
          πŸ” Vector Search
              β”‚
              β–Ό
         πŸ“š Relevant Chunks
              β”‚
              β–Ό
             πŸ€– LLM
              β”‚
              β–Ό
          πŸ’¬ AI Response

⚠️ Disclaimer

πŸ§ͺ This is a learning project.

The main purpose of ask-pdf is to learn, experiment, and understand how RAG-based applications work.

This project is not intended to be production-ready.

The implementation may contain experimental approaches, simplified architecture, bugs, performance limitations, and missing production-level security or scalability considerations.

About

πŸ€– A simple RAG (Retrieval-Augmented Generation) application for asking questions about PDF documents.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages