Jibarito Agent - Neo4j Aura Agents Hackathon Submission
Agent Name
Jibarito β Puerto Rican farmer/campesino
An agricultural intelligence agent for the US Caribbean & tropical regions
What It Does
Jibarito is a bilingual (Spanish/English) AI agent powered by Neo4j AuraDB that helps farmers, gardeners, agronomists, and researchers make data-driven agricultural decisions.
Aura Console Screenshots
Live Demo
YouTube Demo Video: https://youtu.be/22F9bWTdzvs
Features demonstrated:
- Real-time queries in English and Spanish
- Companion planting recommendations
- Production statistics & comparisons
- Dark mode UI with Jibarito branding
- Data attribution to USDA, CrophGraph & Neo4j
Live Application
Try Jibarito: https://jibarito.streamlit.app/
- Click example questions in the sidebar
- Type your own questions (English or Spanish)
- Get instant agricultural intelligence
- All responses powered by Neo4j AuraDB
Answers questions about:
- Crop Production Statistics β What's grown where, historical trends (USDA NASS data)
- Companion Planting β What plants grow well together with mechanisms & sources
- Pest & Disease Management β Organic solutions for agricultural pests
- Growing Information β Spacing, harvest times, climate requirements
- Regional Comparison β Compare production across 4 territories
- Bilingual β Ask in English or Spanish, get answers in your language
Dataset & Why a Graph Fits
The Data
- 92,218 Agricultural Production Records from USDA NASS Quick Stats
- 4 US Territories: Puerto Rico, US Virgin Islands, Hawaii, Florida
- 3 Census Years: 2018, 2022, 2023
- 228 Crops
- 262 Pests
Why Neo4j Graph is Perfect
Agricultural intelligence is fundamentally about relationships, not isolated data:
- Companion Planting Networks β "What grows well WITH tomatoes?"
- Crop Rotation Sequences β "What to plant AFTER tomatoes?"
- Pest Management Relationships β "What pests attack tomatoes?"
- Production Context β Commodity β AgRecord β Geography β County with full history
- Semantic Discovery β Vector similarity on 92K production records
Final Graph Statistics
- 92K+ Nodes β territories, counties, commodities, plants, pests, operations
- 213K+ Relationships β production, companions, pests, rotations, geography
- Vector Index on 92,218 AgRecords (OpenAI embeddings, cosine similarity)
Graph Schema
Layer 1: Production Statistics
Source: USDA NASS Quick Stats
ClimateZone β Geography β County
AgRecord βββ IS_COMMODITY βββ Commodity βββ THRIVES_IN βββ ClimateZone
βββ FOR_GEOGRAPHY βββ Geography
βββ REPORTED_IN βββ County
CommodityGroup βββ HAS_COMMODITY βββ Commodity
OperationStats βββ STATS_FOR βββ Geography | County
Layer 2: Horticultural Intelligence
Source: CropGraph API + USDA PLANTS Database
Plant βββ COMPANION_OF βββ Plant (mechanism, strength)
βββ ANTAGONIST_OF βββ Plant
βββ HAS_PEST βββ Pest (severity, type)
βββ BELONGS_TO_FAMILY ββ RotationFamily
βββ SAME_AS ββ Commodity (bridge to Layer 1)
RotationFamily βββ ROTATE_TO βββ RotationFamily
Technology Stack
| Component | Technology |
|---|---|
| Graph Database | Neo4j AuraDB |
| Agent Platform | Neo4j Aura Agent |
| Embeddings | OpenAI text-embedding-3-small (1536 dims) |
| Frontend | Streamlit 1.31.0 |
| Deployment | Streamlit Cloud |
Data Sources
| Source | Type | License | Records |
|---|---|---|---|
| USDA NASS Quick Stats | Production statistics | CC0 | 92,218 |
| USDA Census | Farm operations | CC0 | Operations data |
| CropGraph API | Companion planting, pests, spacing | Open | 91 crops |
| USDA PLANTS | Botanical traits | Public Domain | 125 crops |
Example Queries
English:
- "How many tomatoes were grown in Puerto Rico in 2022?"
- "What should I plant next to tomatoes?"
- "What pests attack peppers?"
- "What crops are grown in Hawaii?"
Spanish:
- "ΒΏCuΓ‘ntos tomates se produjeron en Puerto Rico en 2022?"
- "ΒΏQuΓ© debo sembrar junto a los tomates?"
- "ΒΏQuΓ© plagas atacan los plΓ‘tanos?"
- "ΒΏQuΓ© cultivos se cultivan en HawΓ‘i?"
Architecture
User Query (Streamlit)
β
OAuth2 Token Generation (Neo4j)
β
REST API β Neo4j Aura Agent
β
Agent Tools:
β’ Similarity Search (vector embeddings)
β’ Commodity Queries (Cypher templates)
β’ Companion Plant Relationships
β’ Pest Management Info
β’ Growing Characteristics
β
Neo4j AuraDB
β’ 92K+ nodes
β’ 213K+ relationships
β’ Vector index (ag_embeddings)
β
Clean Response β User
Key Decisions
Scope Selection
- 4 territories + 3 census years fitting AuraDB limits
Multi-Layer Design
- Layer 1 (Production Stats) β USDA NASS data for exact queries
- Layer 2 (Horticultural Intelligence) β CropGraph + USDA PLANTS for recommendations
- Separation enables both precise queries and discovery-based learning
Bilingual Support
- Puerto Rico + Spanish-speaking farmers require native Spanish support
- Aura Agent naturally handles language switching via system prompt
Vector Embeddings
- OpenAI text-embedding-3-small (1536 dims) chosen to match Aura Agent's default
- Enables semantic similarity search and agricultural records
How to Use Jibarito
- Visit:
https://jibarito.streamlit.app/ - Choose: Click any example question in sidebar OR type your own
- Wait: Agent processes your question using Neo4j knowledge graph
- Learn: Get data-driven agricultural intelligence in your language
Links
- GitHub Repo:
https://github.com/acarrasquillo/jibarito_agent
Built for the Neo4j Aura Agents Hackathon | June 2026


