Skip to content

Performance cost optimization#100

Merged
tekrajchhetri merged 82 commits into
fix_json_op_issuefrom
performance_cost_optimization
Apr 9, 2026
Merged

Performance cost optimization#100
tekrajchhetri merged 82 commits into
fix_json_op_issuefrom
performance_cost_optimization

Conversation

@tekrajchhetri

Copy link
Copy Markdown
Collaborator

Summary

This PR introduces several major improvements to the pipeline:

Changes

Faster Pipeline Execution

  • Fixes the issue of tasks taking excessively long to complete (previously 6+ hours in some cases)
  • Reduces token usage and overall cost
  • The full pipeline now completes in 5–10 minutes for a 35+ page document (based on testing)
  • Longer documents may still require additional processing time

Staged Output Persistence

  • Adds support for saving outputs at each stage (e.g., extraction, alignment)
  • Previously, failures (e.g., invalid OpenRouter key or insufficient credit) required restarting from scratch
  • Now allows reuse of completed stages, avoiding redundant work and saving time

Selective Agent/Task Execution

  • Introduces the ability to skip specific agents or tasks
  • Enables running only required stages (e.g., extraction + alignment) without invoking others like judge or human feedback agents

LLM Call Logging

  • Logs all LLM calls made:
    • Direct calls
    • Calls via CrewAI

@tekrajchhetri tekrajchhetri mentioned this pull request Mar 26, 2026
@tekrajchhetri tekrajchhetri self-assigned this Apr 6, 2026
@tekrajchhetri

Copy link
Copy Markdown
Collaborator Author

Merging based on discussion over slack.

@tekrajchhetri
tekrajchhetri merged commit bd8f371 into fix_json_op_issue Apr 9, 2026
1 of 6 checks 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.

3 participants