Skip to content

GenAI Anomaly Detection in building documents combining a LangChain QA chain with Vectara vector store & Together.ai in a Streamlit app

License

Notifications You must be signed in to change notification settings

salgadev/DocVerifyRAG

Repository files navigation

title emoji colorFrom colorTo sdk sdk_version app_file pinned
DocVerifyRAG
🖺
pink
green
streamlit
1.27.0
app.py
false

DocVerifyRAG: Anomaly detection for BIM document metadata

Description

Introducing DocVerifyRAG, a cutting-edge solution revolutionizing document verification processes across various sectors. Our app goes beyond mere document classification; it focuses on ensuring metadata accuracy by cross-referencing against a vast vector database of exemplary cases. Inspired by the necessity for precise data management, DocVerifyRAG leverages AI to scrutinize document metadata, instantly flagging anomalies and offering suggested corrections. Powered by Vectara vector store technology and supported by the innovative capabilities of together.ai API, our app employs advanced anomaly detection algorithms to scrutinize metadata, ensuring compliance with regulatory standards and enhancing data integrity. With DocVerifyRAG, users can effortlessly verify document metadata accuracy, minimizing errors and streamlining operational efficiency.

Table of Contents

DocVerifyRAG

TRY the prototype

DocVerifyRAG

Screenshots

ttthh

Technology Stack

Technology Description
Python Primary programming language used for development.
LangChain Framework for developing applications powered by large language models (LLMs).
Vectara Provides efficient vector search capabilities via the Boomerang model in a "RAG as a service" architecture.
intfloat/multilingual-e5-large Generates efficient and performant multilingual language embeddings.
Together AI Platform for training, fine-tuning, and deploying gen AI models. Its inference API was used with the model mistralai/Mixtral-8x7B-Instruct-v0.1.
Streamlit Open-source Python library for creating custom web apps, used as the frontend.
Hugging Face Spaces Service for developer-friendly deployments of data applications.

The backend is built using Python, LangChain, Vectara, and Together AI's inference API with the mistralai/Mixtral-8x7B-Instruct-v0.1 model for processing and understanding large amounts of data. Streamlit is used for the frontend, providing an intuitive interface for users. Hugging Face Spaces simplifies the deployment process, making the application easily accessible.

Features

  1. Metadata Verification:
  • Cross-references document metadata against a comprehensive vector database of exemplary cases.
  • Instantly identifies anomalies and discrepancies, ensuring metadata accuracy and compliance.
  1. Automated Metadata Correction:
  • Offers suggested metadata corrections based on processed PDF files, facilitating swift and accurate adjustments.
  • Potential for automated inspection of numerous metadata rows for seamless large-scale data verification.
  1. Question Answering Retriever:
  • Utilizes Vectara vector store technology for efficient retrieval of relevant information.
  • Employs Hugging Face embeddings E5 multilingual model for precise analysis of multilingual data.
  • Identifies anomalies in names, descriptions, and disciplines, providing actionable insights for data accuracy.
  1. User-Friendly Interface:
  • Intuitive web interface for effortless document upload, metadata verification, and correction.
  • Simplifies document management processes, reducing manual effort and enhancing operational efficiency.

Install locally

  1. Clone the repository:

    $ git clone https://github.com/salgadev/DocVerifyRAG.git
  2. Install dependencies:

    $ pip install -r requirements.txt
  3. Run using Streamlit:

    $ streamlit run app.py

Usage

Access the web interface and follow the prompts to upload documents, classify them, and verify metadata. The AI-powered anomaly detection system will automatically flag any discrepancies or errors in the document metadata, providing accurate and reliable document management solutions.

Authors

Name Link
Sandra Ashipala GitHub
Elia Wäfler GitHub
Carlos Salgado GitHub

License

GitLicense

About

GenAI Anomaly Detection in building documents combining a LangChain QA chain with Vectara vector store & Together.ai in a Streamlit app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •