Skip to content

This app allows users to upload CSV or PDF files, or enter text, and ask questions related to the content, no matter how long it is.

Notifications You must be signed in to change notification settings

Kaludii/File-QnA-AI-Assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

File Q&A AI Assistant 🤖

This is a Streamlit app that allows users to upload CSV, PDF files, or enter text and ask questions related to the content. The app uses OpenAI's API along with PandasAI for CSV files and LangChain for PDF and text files to provide quick answers in real-time.

Web App

Click Here to view this app online!

image image

Features

  • Users can upload CSV, PDF files, or enter text to ask questions related to the content.
  • PandasAI is used for CSV uploads, along with asking questions, users can also request visualizations to generate a graph directly from the CSV data.
  • For PDF and text inputs, LangChain is used to answer questions related to the content, no matter how long it is.

Usage

CSV File

  • Upload a CSV file to interact with the data through questions or request visualizations directly.

PDF File and Text

  • Upload a PDF file or enter text to get answers to your questions based on the content.

Asking Questions

  • Enter your question in the "Question" field and click "Send" to receive answers based on the uploaded content or entered text.

Requirements

  • Python 3.6 or higher
  • Streamlit
  • openai
  • pandasai==0.2.2
  • PyPDF2
  • Pillow
  • LangChain
  • docarray
  • matplotlib
  • pypdf
  • tiktoken
  • faiss-cpu

Installation

  1. Clone the repository:

git clone https://github.com/Kaludii/File-QnA-AI-Assistant.git

  1. Install the required packages: To run this app, type pip install -r requirements.txt to automatically download all necessary dependencies, including Streamlit, OpenAI, Pandas, PyPDF2, Pillow, and LangChain.

  2. Run the app:

streamlit run app.py

Releases

No releases published

Packages

No packages published

Languages