mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-20 12:37:04 -04:00
[PR #53] [MERGED] feat: add SearXNG meta search engine tool integration #137
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/53
Author: @stoykovstoyk
Created: 8/21/2025
Status: ✅ Merged
Merged: 8/24/2025
Merged by: @asdek
Base:
master← Head:master📝 Commits (4)
9c259c3feat: add SearXNG meta search engine tool integration19eaffafix: add missing SEARXNG environment variables to docker-compose.ymla23d881fix(searxng): disable SEARXNG_URL by default in .env.example36c7fccfix(searxng): update logging to use agent context and follow naming conventions📊 Changes
14 files changed (+811 additions, -4 deletions)
View changed files
📝
.env.example(+8 -0)📝
EULA.md(+1 -1)📝
README.md(+4 -2)📝
backend/cmd/ftester/mocks/tools.go(+33 -0)📝
backend/cmd/ftester/worker/args.go(+1 -0)📝
backend/cmd/ftester/worker/executor.go(+16 -0)➕
backend/migrations/sql/20250821_123456_add_searxng_search_type.sql(+50 -0)📝
backend/pkg/config/config.go(+8 -0)📝
backend/pkg/database/models.go(+1 -0)📝
backend/pkg/tools/registry.go(+11 -1)➕
backend/pkg/tools/searxng.go(+304 -0)➕
backend/pkg/tools/searxng_test.go(+329 -0)📝
backend/pkg/tools/tools.go(+39 -0)📝
docker-compose.yml(+6 -0)📄 Description
Description of the Change
Problem
PentAGI lacked integration with Searxng, a popular privacy-focused meta search engine that aggregates results from multiple search engines. Users requested the ability to add Searxng as an additional search option alongside existing providers like Google, DuckDuckGo, Tavily, and Perplexity.
Solution
Implemented comprehensive Searxng search tool integration with the following key components:
Closes #
Type of Change
Areas Affected
Testing and Verification
Test Configuration
Test Steps
Test Results
All unit tests pass successfully:
Security Considerations
The Searxng integration enhances security by providing users with a privacy-focused search option that can be self-hosted. Key security considerations:
Performance Impact
The Searxng tool is designed with performance in mind:
Documentation Updates
Deployment Notes
New Environment Variables
Checklist
Code Quality
go fmtandgo vet(for Go code)npm run lint(for TypeScript/JavaScript code)Security
Compatibility
Documentation
Additional Notes
The Searxng tool implementation follows the exact same patterns as existing search tools (Google, DuckDuckGo, Tavily, etc.) ensuring consistency in the codebase. The feature is optional and only activates when SEARXNG_URL is configured, making it safe for production deployment.
Key implementation highlights:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.