How rabijezekthi/dataai works
This is a procurement-intelligence application: a buyer submits a request, reviews two approval checkpoints, and receives ranked vendor recommendations with compliance risks and evidence. The Streamlit app presents the workflow; LangGraph routes intake through policy retrieval, quote analysis, risk assessment, and synthesis. Document and Vendor MCP servers supply policy and quote capabilities, while agent roles and an A2A bus support specialist analysis. JSON memory, optional vector retrieval, catalog administration, and evaluation are additional product capabilities. Some app wiring is omitted from excerpts, so those relationships are cited to the README where documented.
Main entry points: workflow.py Workflow router · app.py Streamlit app · mcp_runtime.py MCP client · a2a_bus.py Agent message bus
Components 17
Buyer experience
- Streamlit app
app.py
Workflow and agents
- Workflow router
orchestration/workflow.py - Workflow state
orchestration/state.py - Request schemas
agents/schemas.py - Intake agent
agents/roles.py - Policy agent
agents/roles.py - Pricing agent
agents/roles.py - Risk agent
agents/roles.py - Agent message bus
agents/a2a_bus.py
Procurement sources
- MCP client
orchestration/mcp_runtime.py - Document MCP
mcp_servers/doc_mcp/server.py - Vendor MCP
mcp_servers/vendor_mcp/server.py - Catalog administration
mcp_servers/vendor_mcp/data_admin.py
Memory and evaluation
- JSON memory
memory/store.py - Decision retrieval
memory/vector_store.py - Run evaluation
evaluation/metrics.py
Other components
- Procurement buyer
Connections 19
- Procurement buyer → Streamlit app: submits request
README.md - Streamlit app → Workflow router: invokes workflow
app.py - Workflow router → Intake agent: calls intake
orchestration/workflow.py - Workflow router → Policy agent: calls retrieval
orchestration/workflow.py - Workflow router → Pricing agent: calls pricing
orchestration/workflow.py - Workflow router → Risk agent: calls risk
orchestration/workflow.py - Workflow router → Workflow state: validates state
orchestration/workflow.py - Workflow state → Request schemas: uses request
orchestration/state.py - Pricing agent → Agent message bus: publishes shortlist
agents/roles.py - Risk agent → Agent message bus: publishes verdict
agents/roles.py - Workflow router → Agent message bus: consumes verdict
orchestration/workflow.py - Streamlit app → MCP client: retrieves data
README.md - MCP client → Document MCP: calls policy tool
orchestration/mcp_runtime.py - MCP client → Vendor MCP: calls quote tool
orchestration/mcp_runtime.py - Streamlit app → Catalog administration: manages catalog
README.md - Streamlit app → JSON memory: records decisions
README.md - Streamlit app → Decision retrieval: stores decisions
README.md - Streamlit app → Run evaluation: scores runs
README.md - Workflow router → Streamlit app: returns recommendation
app.py