Skip to content

Conversation

mskarlin
Copy link
Collaborator

@mskarlin mskarlin commented Jan 7, 2025

When we approach more complex trajectories, the agent models need more info for decision making. We only return by default 1 top-ranked context, this allows us to expose more to the agent model.

@mskarlin mskarlin requested a review from a team January 7, 2025 18:29
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Jan 7, 2025
]
)

best_evidence = f" Best evidence(s):\n\n{top_contexts}" if top_contexts else ""
Copy link
Collaborator

@jamesbraza jamesbraza Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two comments here:

  • Is there a leading space by design?
  • Can we do "{self.settings.agent.agent_evidence_n} best evidence:" to be more precise
    • This may be a bad idea also, so feel free to not do this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yea, there's a leading space by design, it's been there. On your second bullet -- that seems more confusing to me? i.e. "3 best evidence:"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay agreed, and also when agent_evidence_n = 1 it will be confusing too. Ignore the second one

Co-authored-by: James Braza <jamesbraza@gmail.com>
Copy link
Collaborator

@jamesbraza jamesbraza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 7, 2025
@mskarlin mskarlin merged commit abeddbc into main Jan 7, 2025
5 checks passed
@mskarlin mskarlin deleted the allow-agents-more-contexts branch January 7, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants