LeonardoMdSA commited on
Commit
b788390
·
1 Parent(s): b45fa4d

Files cleanup

Browse files
README.md CHANGED
@@ -26,7 +26,7 @@ Or manual smoke test in test_backend.py
26
 
27
  python scripts\seed_data.py
28
 
29
- python scripts/train_model.py
30
 
31
  python scripts\evaluate.py
32
 
 
26
 
27
  python scripts\seed_data.py
28
 
29
+ python scripts\train_model.py
30
 
31
  python scripts\evaluate.py
32
 
data/mcp/history.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "finance": {
3
- "invoice": [
4
- {
5
- "document_id": "INV-20250101",
6
- "processed_at": "2025-01-01T12:00:00",
7
- "label": "finance.invoice"
8
- },
9
- {
10
- "document_id": "INV-20250102",
11
- "processed_at": "2025-01-02T15:30:00",
12
- "label": "finance.invoice"
13
- }
14
- ]
15
- }
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/mcp/policies.json DELETED
@@ -1,16 +0,0 @@
1
- {
2
- "finance": {
3
- "invoice": [
4
- {
5
- "policy_id": "FIN001",
6
- "rule": "Invoice amount must be positive",
7
- "severity": "high"
8
- },
9
- {
10
- "policy_id": "FIN002",
11
- "rule": "Invoice must contain a date",
12
- "severity": "medium"
13
- }
14
- ]
15
- }
16
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/mcp/taxonomy.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "finance": {
3
- "invoice": {
4
- "description": "Documents related to invoices, payments, and bills.",
5
- "keywords": ["invoice", "payment", "amount", "total"]
6
- },
7
- "expense_report": {
8
- "description": "Internal employee expense reports.",
9
- "keywords": ["expense", "reimbursement", "report"]
10
- }
11
- },
12
- "hr": {
13
- "leave_request": {"..."},
14
- "policy": {
15
- "description": "Internal HR policies and guidelines.",
16
- "keywords": ["policy", "guideline", "compliance"]
17
- }
18
- },
19
- "legal": {
20
- "contract": {
21
- "description": "Contracts, agreements, and legal documents.",
22
- "keywords": ["contract", "agreement", "nda", "sla"]
23
- }
24
- }
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
docker-compose.yml DELETED
@@ -1,69 +0,0 @@
1
- # =====================================================
2
- # LOCAL DEVELOPMENT ONLY
3
- # Not used or supported by Hugging Face Spaces
4
- # Provides distributed MCP servers for local testing
5
- # =====================================================
6
-
7
- version: "3.9"
8
-
9
- services:
10
- # -------------------------
11
- # FastAPI Backend
12
- # -------------------------
13
- backend:
14
- build:
15
- context: .
16
- dockerfile: Dockerfile
17
- container_name: nlp_backend
18
- command: uvicorn app.main:app --host 0.0.0.0 --port 8000
19
- ports:
20
- - "8000:8000"
21
- volumes:
22
- - ./app:/app
23
- - ./models:/app/models
24
- - ./logs:/app/logs
25
- - ./data:/app/data
26
- environment:
27
- ENV: local
28
- DEBUG: "true"
29
- MCP_EMBEDDED: "false"
30
- MCP_DISTRIBUTED_TAXONOMY_URL: http://taxonomy_server:7001
31
- MCP_DISTRIBUTED_POLICY_URL: http://policy_server:7002
32
- MCP_DISTRIBUTED_HISTORY_URL: http://history_server:7003
33
- depends_on:
34
- - taxonomy_server
35
- - policy_server
36
- - history_server
37
-
38
- # -------------------------
39
- # MCP Servers
40
- # -------------------------
41
- taxonomy_server:
42
- build:
43
- context: ./mcp_servers/taxonomy_server
44
- container_name: taxonomy_server
45
- command: python server.py
46
- ports:
47
- - "7001:7001"
48
- volumes:
49
- - ./mcp_servers/taxonomy_server/data:/app/data
50
-
51
- policy_server:
52
- build:
53
- context: ./mcp_servers/policy_server
54
- container_name: policy_server
55
- command: python server.py
56
- ports:
57
- - "7002:7002"
58
- volumes:
59
- - ./mcp_servers/policy_server/data:/app/data
60
-
61
- history_server:
62
- build:
63
- context: ./mcp_servers/history_server
64
- container_name: history_server
65
- command: python server.py
66
- ports:
67
- - "7003:7003"
68
- volumes:
69
- - ./mcp_servers/history_server/data:/app/data
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
models/trained_pipeline.joblib CHANGED
Binary files a/models/trained_pipeline.joblib and b/models/trained_pipeline.joblib differ