Step 1 — Document Upload
A user uploads an invoice, bill, receipt, or other relevant business document.
AI-powered carbon activity intelligence from business documents.
Barai uses Claude to interpret invoices, bills, receipts and other business documents and convert their contents into structured carbon activity data.
Carbon accounting depends on activity data such as:
However, the underlying information frequently exists inside:
These documents contain useful information but are not structured for direct carbon accounting.
Manual interpretation creates:
Barai addresses this document-to-activity-data gap.
The core concept:
Unstructured Business Documents
↓
Raw Extraction
↓
Semantic Interpretation
↓
Structured Activity Data
↓
Emission Factor Mapping
↓
Carbon CalculationBarai separates **unstructured understanding** from **deterministic carbon calculation**.
This is an important architectural principle. The system uses AI where semantic reasoning adds value, and deterministic software where calculation precision is required.
A detailed pipeline for transforming business documents into carbon emission data.
A user uploads an invoice, bill, receipt, or other relevant business document.
OCR/document processing extracts the raw information.
Item: Diesel Fuel
Quantity: 450
Unit: L
Amount: ₹42,300
Vendor: ABC Fuels
Date: 12 August 2026Claude receives the relevant extracted information and determines what the information represents.
It may need to resolve:
Produce normalized activity data.
{
"activity": "diesel_consumption",
"quantity": 450,
"unit": "litre",
"category": "stationary_or_mobile_fuel",
"source": "invoice",
"confidence": 0.96
}Validate:
Invalid or ambiguous results should be flagged for additional processing or human review.
Match the normalized activity against an emission-factor dataset.
Perform deterministic emission calculations. The LLM should not be responsible for arithmetic that can be performed deterministically.
Barai uses Claude to bridge the gap between raw document extraction and structured carbon activity data.
Traditional OCR can identify text, numbers, and fields. It does not reliably determine the semantic meaning of those fields in the context of carbon accounting.
Claude is used to interpret the extracted information and map it into a controlled activity schema.
Understanding what a line item means in the context of carbon accounting.
Using surrounding document information to interpret ambiguous fields.
Converting inconsistent descriptions into a controlled activity representation.
Mapping activities to an appropriate carbon-accounting category.
Identifying uncertain interpretations that may require validation or human review.
A concrete before/after example showing the transformation from document to structured activity data.
ABC FUELS
Invoice #INV-10482
Diesel Fuel 450 L ₹42,300
Transportation 1 service ₹8,000
Date: 12 Aug 2026{
"items": [
{
"description": "Diesel Fuel",
"quantity": 450,
"unit": "L",
"amount": 42300
},
{
"description": "Transportation",
"quantity": 1,
"unit": "service",
"amount": 8000
}
]
}{
"activities": [
{
"activity": "diesel_consumption",
"quantity": 450,
"unit": "litre",
"confidence": 0.96
},
{
"activity": "transportation_service",
"quantity": 1,
"unit": "service",
"confidence": 0.72
}
]
}Note: The second activity may require additional context before it can be reliably mapped to an emission factor. This demonstrates why semantic interpretation matters.
A clean architecture showing the full system flow from document upload to carbon report.
Engineering principles that guide Barai's architecture.
Use Claude where semantic reasoning is valuable. Use deterministic software where deterministic logic is sufficient.
Claude responses should conform to a predefined schema.
Never blindly trust model output.
Low-confidence interpretations should be flagged rather than silently accepted.
Activity data should retain its relationship to the original source document and extracted fields.
Ambiguous or low-confidence activities should be reviewable.
Current stage
Barai is currently being developed as a document-to-carbon-activity intelligence system.
Current technical focus:
Do NOT claim:
unless those claims are actually provided later.
Short-term development roadmap.