Skip to content

Add Perplexity FinCaseAI to Showcase #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions docs/showcase/perplexity-fincaseai.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
title: Perplexity FinCaseAI | AI-Powered Credit Dispute Reviewer
description: A smart assistant that uses Perplexity's Sonar API to analyze financial dispute cases and suggest approve/reject decisions with reasoning.
sidebar_position: 12
keywords: [FinCaseAI, Perplexity, Sonar API, finance, disputes, fraud detection, sentiment analysis, LLM, AI]
---

**Perplexity FinCaseAI** is a lightweight, AI-powered tool that reviews credit card dispute complaints and assists analysts by suggesting decisions based on fraud patterns, urgency, and reasoning.

## Features

- Approve/Reject decision suggestions with confidence levels
- Fraud risk scoring using keyword and pattern matching
- Sentiment and urgency detection from complaint text
- Sonar API integration for final recommendations and reasoning
- Optional Redis-based caching for performance

## How It Uses Sonar

FinCaseAI sends case descriptions as structured prompts to the **Sonar API**, asking for:

- A decision recommendation (approve/reject)
- A brief explanation for the judgment

The API response is parsed and shown alongside internal fraud and sentiment scores for a complete picture.

> **Example Prompt to Sonar**
> "_Given the following customer complaint, should the dispute be approved or rejected? Provide a short explanation._"

## Tech Stack

- **Frontend**: React + Vite
- **Backend**: Python Flask
- **AI Engine**: Perplexity Sonar API + custom logic
- **Cache**: Optional Redis integration
- **Infrastructure**: Runs locally or deployable via Docker

## Setup Instructions

1. Clone the [GitHub repo](https://github.com/PrashansaChaudhary/Perplexity-FinCaseAI)
2. Create a `.env` file with your `SONAR_API_KEY`
3. Run the backend using Flask
4. Start the frontend using Vite
5. Open `http://localhost:5173` and start testing your cases

## Links

- [GitHub Repository](https://github.com/PrashansaChaudhary/Perplexity-FinCaseAI)