feat: support arxiv & brave search

This commit is contained in:
He Tao
2025-04-11 15:37:55 +08:00
parent 23298abd14
commit 3a342a62ba
7 changed files with 99 additions and 3 deletions

View File

@@ -14,13 +14,16 @@ lite-deep-researcher is a community-driven AI automation framework that builds u
git clone https://github.com/hetaoBackend/lite-deep-researcher.git
cd lite-deep-researcher
# Install dependencies, uv will take care of the python interpreter and venv creation
# Install dependencies, uv will take care of the python interpreter and venv creation, and install the required packages
uv sync
# Configure .env with your Search Engine API keys
# Tavily: https://app.tavily.com/home
# Brave_SEARCH: https://brave.com/search/api/
cp .env.example .env
# See the 'Supported Search Engines' section below for all available options
# Configure conf.yaml for your LLM model and API keys
# Gemini: https://ai.google.dev/gemini-api/docs/openai
cp conf.yaml.example conf.yaml
@@ -29,6 +32,32 @@ cp conf.yaml.example conf.yaml
uv run main.py
```
## Supported Search Engines
Lite-deep-researcher supports multiple search engines that can be configured in your `.env` file using the `SEARCH_API` variable:
- **Tavily** (default): A specialized search API for AI applications
- Requires `TAVILY_API_KEY` in your `.env` file
- Sign up at: https://app.tavily.com/home
- **DuckDuckGo**: Privacy-focused search engine
- No API key required
- **Brave Search**: Privacy-focused search engine with advanced features
- Requires `BRAVE_SEARCH_API_KEY` in your `.env` file
- Sign up at: https://brave.com/search/api/
- **Arxiv**: Scientific paper search for academic research
- No API key required
- Specialized for scientific and academic papers
To configure your preferred search engine, set the `SEARCH_API` variable in your `.env` file:
```bash
# Choose one: tavily, duckduckgo, brave_search, arxiv
SEARCH_API=tavily
```
## Development
### Testing