Skip to content

Venuu07/policy-nav-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧭 POLICY NAV: AI-Powered Public Policy Navigator

This project is a multi-modal AI chatbot, developed as part of the Infosys Springboard Internship program.
It’s designed to make complex public policy documents accessible and conversational.

The application allows users to upload images of documents, extract the text using Optical Character Recognition (OCR), and ask contextual questions that are answered by a locally-run Large Language Model (LLM).


🚀 Features

🗨️ Interactive Chat UI

A responsive and polished Streamlit user interface with:

  • Complete conversation history
  • Search functionality
  • Custom CSS styling for a modern AI chat feel

🤖 Local AI Integration

  • Powered by Google’s Gemma model
  • Runs locally via Ollama
  • Ensures 100% data privacy and offline capability

🧠 OCR Functionality

  • Upload JPG or PNG document images
  • Uses Tesseract OCR engine to extract and analyze text

💬 Contextual Conversations

  • The AI understands and answers follow-up questions
  • Robust context-handling system maintains conversation flow

🎨 Custom Front-End

  • UI fully customized using CSS
  • Mimics the design of top-tier modern AI chat interfaces

⚙️ How to Run This Project

🧩 Prerequisites

Make sure you have the following installed:

  • Ollama — Local LLM runner
  • Tesseract OCR — Add it to your system PATH
  • Python 3.8+ — Recommended version

🛠️ Setup

Clone the repository:

git clone [https://github.com/Venuu07/policy-nav-chatbot.git](https://github.com/Venuu07/policy-nav-chatbot.git)

Navigate to the project directory:

cd policy-nav-chatbot

Create a virtual environment and activate it (for Windows):

python -m venv venv
.\venv\Scripts\activate

Install the required Python packages:

pip install -r requirements.txt

Pull the necessary Ollama model:

pip install -r requirements.txt

Running the App

Ensure the Ollama application is running in the background (check your system tray for the icon).

Run the Streamlit app from your terminal:

streamlit run app.py

About

"An AI chatbot to analyze public policy documents, built with Streamlit and Ollama.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors