mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-12 07:45:14 -05:00
Replace basic DuckDuckGo-only search with a modern tiered system: 1. Tavily (primary) - AI-optimized results with content extraction - AI-generated answer summaries - Relevance scoring - Full page content extraction via search_and_extract command 2. Serper (secondary) - Fast, cheap Google SERP results - $0.30-1.00 per 1K queries - Real Google results without scraping 3. DDGS multi-engine (fallback) - Free, no API key required - Automatic fallback chain: DuckDuckGo → Bing → Brave → Google → etc. - 8 search backends supported Key changes: - Upgrade duckduckgo-search to ddgs v9.10 (renamed successor package) - Add Tavily and Serper API integrations - Implement automatic provider selection and fallback chain - Add search_and_extract command for research with content extraction - Add TAVILY_API_KEY and SERPER_API_KEY to env templates - Update benchmark httpx constraint for ddgs compatibility - 23 comprehensive tests for all providers and fallback scenarios Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
550 B
Plaintext
17 lines
550 B
Plaintext
# Your OpenAI API Key. If GPT-4 is available it will use that, otherwise will use 3.5-turbo
|
|
OPENAI_API_KEY=abc
|
|
|
|
# Web Search API Keys (optional - will fall back to DuckDuckGo if not set)
|
|
# Tavily - AI-optimized search with content extraction (recommended)
|
|
# Get your key at https://tavily.com - 1000 free searches/month
|
|
TAVILY_API_KEY=
|
|
|
|
# Serper.dev - Fast, cheap Google SERP results
|
|
# Get your key at https://serper.dev - 2500 free searches to start
|
|
SERPER_API_KEY=
|
|
|
|
# Control log level
|
|
LOG_LEVEL=INFO
|
|
DATABASE_STRING="sqlite:///agent.db"
|
|
PORT=8000
|