The DFO OpenAI Tool Suite is a web application equipped with a suite of AI tools designed for document interaction and analysis. This application enables users to leverage powerful AI capabilities directly through their web browser. Built using Django, Python, CSS, HTML, and JavaScript.
- AI ChatBot: Allows real-time conversations with PDF documents, making it suitable for general inquiries and simple prompts.
- CSV/PDF Analyzer: Analyzes and extracts information from PDF documents by uploading the document along with a CSV file containing engineered prompts.
- Sensitivity Score Calculator: Computes the sensitivity level of uploaded documents based on custom parameters.
- Redactor: Scans and redacts specific information from uploaded PDF documents.
We utilize Azure AI to power the AI ChatBot and CSV/PDF Analyzer. Azure AI provides advanced machine learning models that can interpret and respond to user queries, and analyze text data extracted from documents. This integration allows for:
- Enhanced natural language processing for real-time conversation with documents.
- Sophisticated data extraction and analysis from CSV and PDF files, enabling deep insights into document contents.
Document Intelligence is used to read and interpret the contents of documents uploaded to the web application. It helps in:
- Automatically extracting text and data from structured and unstructured documents.
Before you begin the setup process, make sure to install the following:
- Python 3.9
- pip (Python package installer)
Download and install Python 3.9 from the official website: Python Downloads During installation, ensure to check the box that says 'Add Python 3.9 to PATH'.
Clone the repository to your local machine with the following command:
git clone https://github.com/dfo-mpo/openAI-Chatbot.git
cd openAI-Chatbot
Install all required dependencies by running the following command in the project directory:
pip install -r requirements.txt
Create a .env file in the root directory of your project and populate it with necessary API keys and other sensitive configurations:
OPENAI_API_KEY = ""
OPENAI_API_ENDPOINT = ""
openai.api_type = ""
OPENAI_API_BASE = ""
DI_API_ENDPOINT = ""
DI_API_KEY = ""
Start the local server by running:
python manage.py runserver
You can access the web application by visiting http://127.0.0.1:8000 in your web browser.