Skip to content

Redefine agentic workflow#25

Merged
saranshkr merged 8 commits into
mainfrom
feature/redefine-agentic-workflow
Apr 15, 2026
Merged

Redefine agentic workflow#25
saranshkr merged 8 commits into
mainfrom
feature/redefine-agentic-workflow

Conversation

@saranshkr

Copy link
Copy Markdown
Collaborator

Summary

This PR restores the missing multi-agent analytics workflow for uploaded structured data.

The backend now uses a bounded flow:

  1. Planner creates the full plan
  2. Query writer generates one SQL query per step
  3. Executor runs steps sequentially and stores successful outputs
  4. Analyzer runs once at the end to return the final answer or request one replan
  5. If limits are hit, the workflow returns a clear best-effort answer

What Changed

  • Restored the missing app/agent runtime
  • Replaced the old compiled-plan flow with a planner -> query writer -> executor -> analyzer workflow
  • Grounded planning and execution on compact uploaded-data schema/context summaries
  • Added bounded retry, bounded replan, and best-effort fallback behavior
  • Kept the existing API/UI response shape stable
  • Removed the old deterministic grounding path and updated tests/docs accordingly

Validation

./.venv/bin/python -m pytest tests -q

@saranshkr saranshkr self-assigned this Apr 11, 2026
@saranshkr saranshkr merged commit 5955a06 into main Apr 15, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant