Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,14 +1,48 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
-
short_description: Upload your invoices and get key value pairs of products,etc
|
| 12 |
---
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Invoice RAG with MCP
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# π Invoice RAG System with MCP Integration
|
| 14 |
+
|
| 15 |
+
An intelligent system for processing and querying invoice data using RAG (Retrieval Augmented Generation) with MCP (Model Context Protocol) support.
|
| 16 |
+
|
| 17 |
+
## π Features
|
| 18 |
+
|
| 19 |
+
- **PDF Invoice Processing**: Extract and analyze invoice data
|
| 20 |
+
- **RAG System**: Intelligent document retrieval and question answering
|
| 21 |
+
- **Multiple LLM Support**: Groq integration with various models
|
| 22 |
+
- **MCP Integration**: Expose tools via Model Context Protocol
|
| 23 |
+
- **Interactive UI**: Clean Gradio interface
|
| 24 |
+
|
| 25 |
+
## π§ Setup
|
| 26 |
+
|
| 27 |
+
1. **Set API Keys**: Add your `GROQ_API_KEY` in the Space settings
|
| 28 |
+
2. **Upload Invoices**: Use the training tab to process your PDFs
|
| 29 |
+
3. **Query Data**: Ask questions about your invoices
|
| 30 |
+
4. **MCP Tools**: Access structured data extraction tools
|
| 31 |
+
|
| 32 |
+
## π Usage
|
| 33 |
+
|
| 34 |
+
1. **Train**: Upload invoice PDFs to train the RAG system
|
| 35 |
+
2. **Query**: Ask natural language questions about your invoices
|
| 36 |
+
3. **Extract**: Use MCP tools for structured data extraction
|
| 37 |
+
|
| 38 |
+
## π Required Environment Variables
|
| 39 |
+
|
| 40 |
+
- `GROQ_API_KEY`: Your Groq API key for LLM access
|
| 41 |
+
|
| 42 |
+
## π οΈ MCP Integration
|
| 43 |
+
|
| 44 |
+
The system exposes these MCP tools:
|
| 45 |
+
- `query_invoice_info`: Extract information from invoices
|
| 46 |
+
- `get_invoice_summary`: Get summary of processed invoices
|
| 47 |
+
- `extract_specific_field`: Extract specific fields
|
| 48 |
+
- `list_available_invoices`: List available invoice sources
|