YashArya16 commited on
Commit
7e894fd
Β·
verified Β·
1 Parent(s): c6a156e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +41 -7
README.md CHANGED
@@ -1,14 +1,48 @@
1
  ---
2
- title: InvoiceAgent
3
- emoji: πŸ“š
4
- colorFrom: yellow
5
- colorTo: red
6
  sdk: gradio
7
- sdk_version: 5.33.1
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
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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