-
Notifications
You must be signed in to change notification settings - Fork 90
Add focus_agent, embedding and bm25 agents #302
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to have the the bm25_agent and embedding_agent in the focus_agent subdirectory, as they are related baselines. @recursix Do you have any thoughts about this?
def make_model(self): | ||
return MockEmbeddingRetriever(self) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the focus-agent tests
optional if the dependencies are not not installed.
from agentlab.experiments.loop import EnvArgs, ExpArgs | ||
from agentlab.llm.chat_api import CheatMiniWoBLLMArgs | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make the focus agent tests
optional if dependencies are not installed.
This PR adds 3 agents for the paper FocusAgent: Simple Yet Effective Ways of Trimming the Large Context of Web Agents:
All 3 agents use then
GenericAgent
as the executor.Description by Korbit AI
What change is being made?
Add BM25RetrieverAgent, EmbeddingRetrieverAgent, and FocusAgent (including their retrievers, configs, utilities, and tests), along with dependency updates to support BM25 and LangChain features.
Why are these changes being made?
Introduce retrieval-augmented agents to improve content filtering and context selection using BM25, embedding-based similarity, and line-based focus strategies; provide configurable presets and tests to ensure correct behavior across agents.