obsidian-vault/concepts/Search-Tool-Priority.md
2026-09-20 20:40:46 +03:00

122 lines
5.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: concept-search-tool-priority
pageType: concept
updatedAt: 2026-08-22T13:50:00+03:00
sourceIds:
- sources/memory.md
tags:
- search
- tools
- priority
- tavily
- firecrawl
- searxng
claims:
- text: "Порядок: web_search (SearXNG локально) → Tavily → Firecrawl, web_fetch — только для простых URL"
status: supported
confidence: 0.95
evidence:
- kind: source-file
sourceId: source.memory
path: sources/memory.md
updatedAt: 2026-08-22T09:11:48.958Z
updatedAt: 2026-08-22T09:11:48.958Z
- text: Firecrawl — только для JS-heavy/сложных страниц
status: supported
confidence: 0.95
evidence:
- kind: source-file
sourceId: source.memory
path: sources/memory.md
updatedAt: 2026-08-22T09:11:48.958Z
updatedAt: 2026-08-22T09:11:48.958Z
- text: Выбор наиболее лёгкого достаточного инструмента — обязательный принцип
status: supported
confidence: 0.9
evidence:
- kind: source-file
sourceId: source.memory
path: sources/memory.md
updatedAt: 2026-08-22T09:11:48.958Z
updatedAt: 2026-08-22T09:11:48.958Z
- text: web_search provider — локальный SearXNG (127.0.0.1:8888, только loopback), @openclaw/searxng-plugin v2026.7.1, E2E PASS 2026-08-21
status: supported
confidence: 0.95
evidence:
- kind: source-file
sourceId: source.memory
path: sources/memory.md
updatedAt: 2026-08-22T09:11:48.958Z
updatedAt: 2026-08-22T09:11:48.958Z
- text: Docker-доступ через `sudo docker` (owner вне docker-группы — осознанное решение)
status: supported
confidence: 0.9
evidence:
- kind: source-file
sourceId: source.memory
path: sources/memory.md
updatedAt: 2026-08-22T09:11:48.958Z
updatedAt: 2026-08-22T09:11:48.958Z
---
# Concept: Search Tool Priority
## Summary
Порядок выбора инструментов поиска и извлечения контента: web_search (provider: SearXNG локально) → Tavily Search → Tavily Extract → Firecrawl Search/Scrape. Всегда выбирается самый лёгкий инструмент, решающий задачу.
## Description
Правило из MEMORY.md «Search Tool Priority»:
- **web_search** — быстрая проверка (quick lookup); с 2026-08-21 provider — локальный SearXNG (см. ниже)
- **Tavily Search** — высококачественный поиск, новости, фильтры по времени/доменам
- **Tavily Extract** — извлечение статей/страниц
- **Firecrawl Search/Scrape** — только для JS-heavy или сложных для парсинга страниц
- **web_fetch** — только простое получение URL
Принцип: «Always choose the lightest tool that can solve the task» — не использовать тяжёлые инструменты там, где достаточно лёгких.
### SearXNG — локальный web_search (2026-08-21)
- **Provider:** `tools.web.search.provider: "searxng"` (в openclaw.json)
- **Плагин:** @openclaw/searxng-plugin v2026.7.1 (enabled)
- **Базовый URL:** `plugins.entries.searxng.config.webSearch.baseUrl: "http://127.0.0.1:8888"`
- **Контейнер:** `searxng` (searxng/searxng:latest), --restart unless-stopped, порт **127.0.0.1:8888:8080** (только локально)
- **Конфиг:** /home/owner/searxng/settings.yml (600): use_default_settings, secret_key (hex24), limiter: false, formats [html, json]
- **Docker:** docker.io 26.1.5, enabled+running; доступ через `sudo docker` (owner не в docker-группе — осознанно)
- **E2E:** PASS (evaluator + main-agent, 2026-08-21): JSON API живёт, web_search работает через searxng
- **Остатки:** /home/owner/searxng/app/ (29МБ, от прерванной первой попытки) — удалены 2026-08-21 (запрос пользователя)
## Claims
- Порядок: web_search (SearXNG локально) → Tavily → Firecrawl, web_fetch — только для простых URL
- Firecrawl — только для JS-heavy/сложных страниц
- Выбор наиболее лёгкого достаточного инструмента — обязательный принцип
- web_search provider — локальный SearXNG (127.0.0.1:8888, только loopback), @openclaw/searxng-plugin v2026.7.1, E2E PASS 2026-08-21
- Docker-доступ через `sudo docker` (owner вне docker-группы — осознанное решение)
## Tags
- search
- tools
- priority
- tavily
- firecrawl
- searxng
- docker
## Sources
- [[MEMORY.md]]
## Related
<!-- openclaw:wiki:related:start -->
### Related Pages
- [Concept: Active Projects](Active-Projects.md)
- [Concept: Bridge Mode](Bridge-Mode.md)
- [Concept: Mail Pipeline (arno@eurostela.ru)](Mail-Pipeline.md)
- [Concept: Nextcloud Sync Folder (arno.nextcloud)](Nextcloud-Sync-Folder.md)
- [Concept: Routing](Routing.md)
- [Concept: VRAM Management](VRAM-Management.md)
- [Concept: Workspace File Policy](Workspace-File-Policy.md)
- [Entity: Beget (хостинг / IMAP)](../entities/Beget.md)
- [Entity: Dream Diary (DREAMS.md)](../entities/Dream-Diary.md)
- [Entity: Ollama](../entities/Ollama.md)
- [Entity: OpenClaw](../entities/OpenClaw.md)
- [Hermes Restructure (2026-09-07): Source of Truth → INFRASTRUCTURE.md](../syntheses/hermes-restructure-2026-09-07-source-of-truth-infrastructure-md.md)
<!-- openclaw:wiki:related:end -->