Code Monkey home page Code Monkey logo

ai-assistant-for-personal-documents's Introduction

AI Assistant for Personal Data Files

This repository contains an AI-powered assistant for analyzing and answering questions about personal data files, implemented in two different ways.

Table of Contents

Implementations

1. Jupyter Notebook Implementation

This implementation is contained in Chatbot_personal_data.ipynb and uses:

  • Hugging Face models for natural language processing
  • LangChain for document processing and question answering
  • Gradio for the user interface

Key Features:

  • Uses the facebook/bart-large-cnn model for text generation
  • Implements document chunking and embedding using sentence-transformers/all-MiniLM-L6-v2
  • Creates a simple UI with Gradio for file upload and question answering

2. Python Script Implementation

This implementation is split across multiple Python files and uses:

  • IBM Watson Machine Learning and WatsonxLLM for language modeling
  • LangChain for document processing and question answering
  • Flask for the backend server
  • HTML, CSS, and JavaScript for the frontend

Key Files:

  • worker.py: Core logic for document processing and question answering
  • server.py: Flask server to handle API requests
  • Frontend files (HTML, CSS, JS) for the user interface

Key Features:

  • Uses the meta-llama/llama-2-70b-chat model through IBM Watson Machine Learning
  • Implements advanced document chunking and retrieval methods
  • Provides a web-based interface for file upload and chatting

Getting Started

  1. Clone this repository: git clone https://github.com/yourusername/ai-assistant-personal-data.git cd ai-assistant-personal-data

  2. Install the required dependencies: pip install -r requirements.txt

  3. For the Jupyter notebook implementation:

  • Open and run Chatbot_personal_data.ipynb in a Jupyter environment
  1. For the Python script implementation:
  • Set up your IBM Watson Machine Learning credentials
  • Run the Flask server:
    python server.py
    
  • Open the provided HTML file in a web browser to access the interface

Usage

  1. Upload a PDF document containing personal data
  2. Ask questions about the content of the document
  3. Receive AI-generated answers based on the document's content

Demo

In this Demo, I uploaded my resume to the app. Demo Screenshot Webapp Demo Screenshot Gradio Watch the Demo Video

Contributing

Contributions to improve either implementation are welcome. Please feel free to submit issues or pull requests.

This project demonstrates two different approaches to building an AI assistant for personal data analysis, showcasing various technologies and implementation methods.

ai-assistant-for-personal-documents's People

Contributors

axiom19 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.