[PR #4629] [CLOSED] Enhance web-browsing agent tool with current date for recency queries #4696

Closed
opened 2026-02-22 18:36:21 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4629
Author: @shatfield4
Created: 11/6/2025
Status: Closed

Base: masterHead: 4559-feat-agent-web-search-enable-ordering-of-results


📝 Commits (3)

  • 1798dfd enhance web-browsing agent tool with current date for recency queries
  • 49c11fc simplify implementation
  • 14c47be move introspect to enhanceQueryForRecency function

📊 Changes

1 file changed (+53 additions, -0 deletions)

View changed files

📝 server/utils/agents/aibitat/plugins/web-browsing.js (+53 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #4559

What is in this change?

  • Detects search queries asking for recent/latest information
  • Strips LLM added dates from query
  • Appends current month and year to search query ( as of ${month} ${year})

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/4629 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 11/6/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `4559-feat-agent-web-search-enable-ordering-of-results` --- ### 📝 Commits (3) - [`1798dfd`](https://github.com/Mintplex-Labs/anything-llm/commit/1798dfd2b174d20ec94790f292145c7bca309256) enhance web-browsing agent tool with current date for recency queries - [`49c11fc`](https://github.com/Mintplex-Labs/anything-llm/commit/49c11fc8964eee90f1235d090a696271db505830) simplify implementation - [`14c47be`](https://github.com/Mintplex-Labs/anything-llm/commit/14c47be0127c3b964df76647a9b8c783cf95ed56) move introspect to enhanceQueryForRecency function ### 📊 Changes **1 file changed** (+53 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/agents/aibitat/plugins/web-browsing.js` (+53 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #4559 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Detects search queries asking for recent/latest information - Strips LLM added dates from query - Appends current month and year to search query (` as of ${month} ${year}`) ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-22 18:36:21 -05:00
yindo closed this issue 2026-02-22 18:36:21 -05:00
yindo changed title from [PR #4629] Enhance web-browsing agent tool with current date for recency queries to [PR #4629] [CLOSED] Enhance web-browsing agent tool with current date for recency queries 2026-06-05 15:19:54 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#4696