Giter VIP home page Giter VIP logo

pdfs_question_answering's Introduction

Talk to your insurance PDFs ๐Ÿฅ

This repository contains a Python script ๐Ÿ which fetches and compares health insurance plans offered by two companies: EmblemHealth and MetroPlus. The script is designed to automate the process of gathering information and making comparisons, providing a detailed summary of the offerings from each company.

The Python code uses various libraries like OpenAI, Langchain, Tiktoken, and Yaml to help in this process. The main highlight of this code is the ability to ask a set of defined questions to each insurance policy, and get detailed answers using language models. ๐Ÿ‘ฅ

What does the script do? ๐Ÿค”

Loading Data from PDFs: ๐Ÿ“„ The script takes as input PDF documents from the two insurance companies and converts them into text data using the PdfToTextLoader.

Vectorizing dataset: ๐Ÿ“Š The script then vectorizes the text data. This involves transforming the text data into a form that machine learning algorithms can understand.

Asking questions: โ“ The script then asks a set of predefined questions about the insurance policies of each company. These questions relate to details about deductibles, coverage, limitations, and other important aspects.

Comparing Answers: ๐Ÿ†š After gathering the responses, the script summarizes the answers from each company, providing a quick and easy way to compare the offerings of each company.

Ratings: โญ๏ธ The script also provides a rating system that grades each insurance policy in terms of coverage of different health procedures, flexibility for remote workers abroad, and price and compensation.

What does the app do?

App Flow ๐ŸŒŠ Upload Insurance Plans: Users upload two insurance plan documents in PDF format. They can also provide names for these plans.

PDF Loading and Vectorizing: The app converts PDF files into text, and then generates vector representations of the text for further processing.

User Input: Users provide a brief company description and a list of questions that they want to use to compare the plans. They also provide a set of final criteria for decision-making.

Processing and Answer Generation: The app processes the questions against each plan, gathers answers, and generates a final decision based on the provided criteria. It utilizes OpenAI's language model to analyze and understand the information in the documents and to create the final decision.

Output: The app outputs the answers to the provided questions and the final comparative decision based on the criteria. It presents these in an easy-to-understand format.

pdfs_question_answering's People

Contributors

rachnog 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.