AI-Powered Invoice/Receipt Processing and Chatbot Interaction Pipeline
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.
- 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.
- 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.
To set up the Document Processing and Chatbot Interaction Pipeline, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/document-processing-chatbot-pipeline.git
-
Install dependencies:
pip install -r requirements.txt
-
Configure the environment:
- Set up the language model, OCR engine, and chatbot framework.
- Configure API keys and access credentials for external services.
-
Run the application:
python main.py
- Start the pipeline application.
python marker/convert_single.py
- Run frontend
streamlit run frontend.py
- Upload or provide the path to the document you want to process.

- Ask questions

##DEMO VIDEO
deeplogic_demo.mp4
- 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.
Contributions are welcome! If you'd like to contribute to the Document Processing and Chatbot Interaction Pipeline project, please follow these guidelines:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature). - Make your changes and commit them (
git commit -am 'Add new feature'). - Push to the branch (
git push origin feature/your-feature). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Special thanks to the developers of Langchain, Ollama, OCR technologies, and Chatbase for their valuable contributions and support.