Skip to content
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

Websearch Improvements #1184

Merged
merged 24 commits into from
May 21, 2024
Merged

Websearch Improvements #1184

merged 24 commits into from
May 21, 2024

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented May 21, 2024

Websearch Improvements

There should be no breaking changes. There are feature additions and refinements of current functionality around websearch and memory in this PR.

Notes

  • Only browse link if starts with http. Some scraped links started with javascript: and were causing issues. This resolves that problem.
  • Created a verify_link function to check if a link has been browsed instead of using the same code in multiple places.
  • Removed most of the requirements to initialize the websearch agent to make it more flexible.
  • Directly learning URLs now instead of over the ApiClient to speed up websearches.
  • Increased the minimum relevance score for context injection to 0.3 to get higher quality context injection based on user input.
  • Added stored tracking of what URLs have been browsed per agent.
  • Added GET /api/agent/{agent_name}/browsed_links endpoint to get a list of URLs that the agent has browsed along with timestamps of when the URL was browsed
  • Added DELETE /api/agent/{agent_name}/browsed_links endpoint to delete a URL from the list of URLs that the agent has browsed.
  • Added GET /api/agent/{agent_name}/memory/external_sources endpoint to list unique external sources (such as memories from a specific URL or file) of agent memories over API.
  • Added DELETE /api/agent/{agent_name}/memory/external_source endpoint to delete all memories of a specific external source over API.

Todo

@Josh-XT Josh-XT changed the title Only browse link if starts with HTTP Websearch Improvements May 21, 2024
@Josh-XT Josh-XT merged commit f8b580d into main May 21, 2024
8 checks passed
@Josh-XT Josh-XT deleted the only-search-if-starts-with-http branch May 21, 2024 15:39
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