Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocuBot

AI-Powered Invoice/Receipt Processing and Chatbot Interaction Pipeline

Document Processing and Chatbot Interaction Pipeline

Overview

The Document Processing and Chatbot Interaction Pipeline is an innovative project that leverages advanced technologies such as language models, Optical Character Recognition (OCR), and chatbot frameworks to intelligently process documents, extract essential information, and enable user interaction through a chatbot interface. The pipeline is capable of handling various document formats, including PDFs containing both text and image content, and adapts to different information extraction tasks.

Key Components

  • Language Model (LLM): Utilizes advanced language models for understanding and processing text data.
  • Optical Character Recognition (OCR): Employs OCR technology to extract text from images within documents.
  • Langchain: Framework for language processing and text analytics.
  • Ollama: Toolkit for information extraction and document analysis.
  • Chatbase: Chatbot analytics platform for tracking user interactions and improving chatbot performance.

Features

  • Document Processing: Analyzes documents, including invoice/receipt type PDFs, to extract essential information such as key-value pairs.
  • OCR Integration: Handles scenarios where OCR is required to extract text from images within documents.
  • Chatbot Interaction: Enables user interaction through a chatbot interface for querying extracted information and performing related tasks.
  • Adaptability: Adapts to different document formats and information extraction tasks, ensuring robust performance across various use cases.

Installation

To set up the Document Processing and Chatbot Interaction Pipeline, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/document-processing-chatbot-pipeline.git
  2. Install dependencies:

    pip install -r requirements.txt
  3. Configure the environment:

    • Set up the language model, OCR engine, and chatbot framework.
    • Configure API keys and access credentials for external services.
  4. Run the application:

    python main.py

Usage

  1. Start the pipeline application.
    python marker/convert_single.py
  2. Run frontend
    streamlit run frontend.py
  3. Upload or provide the path to the document you want to process. Screenshot 2024-06-08 125458
  4. Ask questions Screenshot 2024-06-08 125610

##DEMO VIDEO

deeplogic_demo.mp4

Customization

  • Document Types: Customize the pipeline to handle specific document formats and extraction tasks.
  • Language Model: Integrate different language models or fine-tune existing ones for improved performance on specific domains.
  • Chatbot Interface: Customize the chatbot interface to meet user preferences and requirements.

Contributing

Contributions are welcome! If you'd like to contribute to the Document Processing and Chatbot Interaction Pipeline project, please follow these guidelines:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Make your changes and commit them (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • Special thanks to the developers of Langchain, Ollama, OCR technologies, and Chatbase for their valuable contributions and support.

About

AI-Powered Invoice/Receipt Processing and Chatbot Interaction Pipeline

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages