8000 intermediate_response_options + intermediate_listable by ohdearquant · Pull Request #551 · khive-ai/lionagi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

intermediate_response_options + intermediate_listable #551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jan 25, 2025
Merged

Conversation

ohdearquant
Copy link
Collaborator
@ohdearquant ohdearquant commented Jan 25, 2025

PR Description (Dev r1 #551)

Overview
This PR merges the dev-r1 branch into main, providing new iterative ReAct flow features, improved intermediate response logic, and additional reasoning_effort parameterization. The largest change set is in the ReAct.py flow, offering a more flexible iterative pipeline with partial intermediate outputs. It also expands the system’s ability to handle streaming or partial sequences of ReAct calls.


Key Changes

  1. Refined ReAct Flow

    • Support for a ReActStream function that yields partial analysis objects step-by-step.
    • Additional parameters in ReAct:
      • reasoning_effort="low"|"medium"|"high" influences how thoroughly the model reasons.
      • intermediate_response_options + intermediate_listable let you define multiple partial outputs.
      • display_as="json"|"yaml" toggles final display formatting.
  2. Branch-level Orchestration

    • Branch.ReAct calls the updated underlying ReActStream for a multi-round approach.
    • Branch.ReActStream yields partial analysis if verbose=True, printing results as the chain unfolds.
  3. format_curly to display_as

    • Replaces or extends the idea of “YAML-like” vs. JSON display with a single display_as param, making it more consistent across functions.
  4. Version Bump to 0.9.1

    • Updated from 0.9.0 to 0.9.1 in pyproject.toml and lionagi/version.py.
  5. Notebook & Example Updates

    • notebooks/react.ipynb includes demonstration for the newly introduced streaming usage and partial iteration.

Files Changed

  • lionagi/operations/ReAct/ReAct.py:

    • Large addition (+650 lines) introducing multi-round streaming logic, partial intermediate responses, and a new parameter set for advanced control.
  • lionagi/session/branch.py:

    • A ReActStream method referencing the new ReAct approach.
    • Extensible parameters (like reasoning_effort, intermediate_response_options).
  • Various:

    • format_curly now replaced with display_as="yaml" or "json".
    • Bumped version in lionagi/version.py and pyproject.toml to 0.9.1.

Testing & Validation

  • Verified incremental ReAct calls in local tests.
  • Confirmed partial “analysis” yields each iteration.
  • Jupyter notebook (notebooks/react.ipynb) updated to demonstrate the new streaming approach.

We appreciate any feedback to further refine partial iteration flows for ReAct. Please review changes for any integration conflicts or synergy with your existing code. We look forward to your comments!

@ohdearquant ohdearquant merged commit a9af28c into main Jan 25, 2025
5 checks passed
@ohdearquant ohdearquant deleted the dev-r1 branch January 25, 2025 03:07
@ohdearquant ohdearquant changed the title Dev r1 intermediate_response_options + intermediate_listable Jan 29, 2025
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
0