Skip to content
/ bayani Public

An AI-app that allows you to upload multiple PDF documents and ask questions about them. It uses OpenAI's LLMs and Langchain.

Notifications You must be signed in to change notification settings

ufakz/bayani

Repository files navigation

Bayani - Document Chatbot

Bayani is a multilingual (English and Hausa) document question-answering application built with Streamlit and LangChain. It allows users to upload documents and ask questions about their content in multiple languages.

Features

  • Document upload and processing (PDF support)
  • Multilingual interface (English and Hausa)
  • Interactive chat interface
  • Source reference for answers

Prerequisites

  • Python 3.11+
  • OpenAI API key

Installation

  1. Clone the repository:
git clone [https://github.com/ufakz/bayani](https://github.com/ufakz/bayani)
cd bayani
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Set up your OpenAI API key:
export OPENAI_API_KEY='your-api-key-here'

Usage

  1. Start the application:
streamlit run main.py
  1. Select your preferred language from the sidebar
  2. Upload your PDF documents
  3. Click "Process Documents" to analyze them
  4. Start asking questions about your documents in the chat interface

Dependencies

  • streamlit
  • langchain
  • langchain-openai
  • langchain-core
  • PyPDF2
  • python-dotenv

About

An AI-app that allows you to upload multiple PDF documents and ask questions about them. It uses OpenAI's LLMs and Langchain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published