CoolFace
Apppublic

Agents-MCP-Hackathon/supplier-performance-analysis-agent

sourceHugging Faceupdated 1y agoView on Hugging Face
3likes
App README

Supplier Performance Analysis Agent

By Kamala K Nanjundeshaiah (kamala.kodi@gmail.com) and Santosh Suggu (suggu.santosh@gmail.com)

A powerful AI-powered application for analyzing supplier performance using supplier on-time delivery, incoming inspection defect rate and audit findings. This application helps organizations make data-driven decisions about their supplier performance, provide status and reccomendations for improvements and supplier relations. Link to video demo: https://youtu.be/ZJ8RWb6cSoc Link to my Medium Article on this topic: https://medium.com/@KamalaKN/quality-professionals-in-regulated-industries-such-as-medical-devices-understand-the-importance-fb28e85caa54

Features

  • โ€”๐Ÿ“Š Supplier Performance Analysis
  • โ€”๐Ÿ“ Audit Report Processing
  • โ€”๐Ÿค– AI-Powered Insights
  • โ€”๐Ÿ’ฌ Interactive Chat Interface
  • โ€”๐Ÿ“ˆ Visual Performance Metrics
  • โ€”๐Ÿ“‘ Detailed Reports Generation

๐Ÿง  Key Technologies & Tools

  • โ€”Python Core development language,
  • โ€”LangGraph Workflow orchestration and stateful graph logic
  • โ€”OpenAI (ChatGPT via LangChain) Generating weight logic, performance summary, and chat responses
  • โ€”Gradio User interface for file uploads, dashboard views, and chat
  • โ€”Pandas, Matplotlib, Plotly Data processing and visualization
  • โ€”python-docx Audit report parsing and Word report generation

Overview Diagram:

image/png


Live Demo

Try the application live on Hugging Face Spaces: https://huggingface.co/spaces/Agents-MCP-Hackathon/supplier-performance-analysis-agent/

Getting Started

Prerequisites

  • โ€”Python 3.8 or higher
  • โ€”OpenAI API key

Installation

  1. 1.Clone the repository:
bash
git clone https://huggingface.co/spaces/kamalakn/supplier-performance-analysis-agent
cd supplier-analysis-agent
  1. 1.Install dependencies:
bash
pip install -r requirements.txt

Usage

  1. 1.Run the application:
bash
python app.py

Sample data can be found in "data" folder.

  1. 1.Open your web browser and navigate to the local URL (typically http://localhost:7860)
  1. 1.Enter your OpenAI API key in the application interface
  1. 1.Upload your supplier data (Excel/CSV) and audit reports (Word documents)
  1. 1.Click "Analyze" to process the data and generate insights

Input Requirements

Supplier Data File

  • โ€”Excel (.xlsx) or CSV format
  • โ€”Required columns: [Add your specific requirements]

Audit Reports

  • โ€”Word documents (.docx)
  • โ€”Should contain audit findings and observations

Features in Detail

Performance Analysis

  • โ€”Calculates supplier performance scores
  • โ€”Identifies top performers
  • โ€”Generates performance trends
  • โ€”Provides detailed metrics

AI-Powered Insights

  • โ€”Natural language processing of audit reports
  • โ€”Automated summary generation
  • โ€”Interactive Q&A about supplier data
  • โ€”Smart recommendations

Visualization

  • โ€”Interactive performance charts
  • โ€”Comparative analysis graphs
  • โ€”Trend visualization
  • โ€”Customizable metrics display

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the GPL V3.0 License

Acknowledgments

  • โ€”Built with Gradio
  • โ€”Powered by OpenAI's GPT models
  • โ€”Uses LangChain for AI processing
  • โ€”Visualization powered by Plotly

Contact

For any questions or support, please open an issue in the repository.