This repository contains the setup to reproduce the Intelligent Data Management (IDM) experiment comparing Solace Agent Mesh (SAM) with LangGraph approaches.
Run 10 complex analytical queries against a PostgreSQL database (5 tables, 1M rows) and compare:
- LangGraph (Naive): Basic SQL tool with raw result dumps
- LangGraph (Optimized): Improved with aggregations
- SAM IDM: Managed connectors with connection pooling and intelligent orchestration
user_prompt.txt: The 10 analytical queries to runDATABASE_DESCRIPTION.md: Database schema and setup instructions
- Set up the PostgreSQL database following
DATABASE_DESCRIPTION.md - Configure your LLM (Claude Haiku 4.5 recommended for comparison)
- Run the queries from
user_prompt.txtthrough each approach - Compare: DB time, agent time, token usage, and result accuracy
SAM IDM should deliver:
- 150x faster DB responses
- 8x faster agent answers
- 14.5x fewer tokens (14.5x cheaper)
- 42% fewer hallucinations