Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

Update README.md

LearningCircuit8368ce435421
diff --git a/README.md b/README.md
index 9471ce5e8c..7765700798 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,10 @@ A powerful AI-powered research assistant that performs deep, iterative analysis
- Transparent data handling
- 🌐 **Enhanced Search Integration**
- - DuckDuckGo integration for web searches
+ - Wikipedia integration for factual knowledge (default)
+ - arXiv integration for scientific papers and academic research
+ - DuckDuckGo integration for web searches (may experience rate limiting)
+ - SerpAPI integration for Google search results (requires API key)
- Full webpage content retrieval
- Source filtering and validation
- Configurable search parameters
@@ -65,8 +68,6 @@ OPENAI_API_KEY=your-openai-key-here # For GPT models
## Usage
Terminal usage (not recommended): python main.py
-
-
### Web Interface
The project includes a web interface for a more user-friendly experience:
@@ -85,8 +86,7 @@ This will start a local web server, accessible at `http://127.0.0.1:5000` in you
- **PDF Export**: Download completed research reports as PDF documents
- **Research Management**: Terminate ongoing research processes or delete past records
-![gui](
-https://private-user-images.githubusercontent.com/6432677/418060579-1db2ba2b-19d3-4431-a7fe-34a955f1a024.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDA4Mjg1MTIsIm5iZiI6MTc0MDgyODIxMiwicGF0aCI6Ii82NDMyNjc3LzQxODA2MDU3OS0xZGIyYmEyYi0xOWQzLTQ0MzEtYTdmZS0zNGE5NTVmMWEwMjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDMwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAzMDFUMTEyMzMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTAxNzRlZTNjMjRlMjk0NjM3NjY2NGIxNGEzN2ZhOGY3YWRhN2JiYTBiOTNmMGMxMmM2OGNmYTVjMDY0ZmYzOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.RMhfZ0nlwEaeznA-kqM_E-9MwZRW7EN5nzcyQ0_VROE)
+![GUI screenshot](https://private-user-images.githubusercontent.com/6432677/418060579-1db2ba2b-19d3-4431-a7fe-34a955f1a024.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDA4Mjg1MTIsIm5iZiI6MTc0MDgyODIxMiwicGF0aCI6Ii82NDMyNjc3LzQxODA2MDU3OS0xZGIyYmEyYi0xOWQzLTQ0MzEtYTdmZS0zNGE5NTVmMWEwMjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDMwMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAzMDFUMTEyMzMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTAxNzRlZTNjMjRlMjk0NjM3NjY2NGIxNGEzN2ZhOGY3YWRhN2JiYTBiOTNmMGMxMmM2OGNmYTVjMDY0ZmYzOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.RMhfZ0nlwEaeznA-kqM_E-9MwZRW7EN5nzcyQ0_VROE)
### Configuration
@@ -103,17 +103,46 @@ SEARCH_REGION = "us-en"
TIME_PERIOD = "y"
SAFE_SEARCH = True
SEARCH_SNIPPETS_ONLY = False
+
+# Choose search tool: "wiki", "arxiv", "duckduckgo", or "serp" (serp requires API key)
+search_tool = "wiki" # Change this variable to switch between search options
```
+### Search Engine Options
+
+The system supports multiple search engines that can be selected by changing the `search_tool` variable in `config.py`:
+
+- **Wikipedia** (`wiki`): Default option. Best for general knowledge, facts, and overview information
+- **arXiv** (`arxiv`): Great for scientific and academic research, accessing preprints and papers
+- **DuckDuckGo** (`duckduckgo`): General web search that doesn't require an API key (Note: May experience rate limiting issues)
+- **SerpAPI** (`serp`): Google search results (requires an API key)
+
+> **Note:** Due to recent DuckDuckGo rate limiting issues, Wikipedia is now the default search engine.
+
+#### Using arXiv Search
+
+To use the arXiv search for scientific and academic papers:
+
+1. Ensure you have the arXiv package installed (included in requirements.txt):
+ ```bash
+ pip install arxiv
+ ```
+
+2. Update the search tool in `config.py`:
+ ```python
+ search_tool = "arxiv"
+ ```
+
+3. Configure arXiv-specific settings in `config.py` if needed.
+
### Model Options
Choose your model based on available computing power and needs:
```python
# Local Models (via Ollama):
-- "mistral" # Recommended
-- "deepseek-r1:7b" # Other option
-
+- "mistral" # Recommended
+- "deepseek-r1:7b" # Other option
# Cloud Models (requires API keys):
- "gpt-4o" # OpenAI's GPT-4
@@ -128,6 +157,12 @@ Choose your model based on available computing power and needs:
- `report_generator.py` - Generates comprehensive research reports
- `config.py` - Configuration settings
- `utilities.py` - Helper functions and utilities
+- `web_search_engines/` - Search engine implementations:
+ - `search_engine_base.py` - Base class for all search engines
+ - `search_engine_wikipedia.py` - Wikipedia search implementation
+ - `search_engine_arxiv.py` - arXiv search implementation
+ - `search_engine_ddg.py` - DuckDuckGo search implementation
+ - `search_engine_serpapi.py` - SerpAPI (Google) search implementation
## Output Files
@@ -144,7 +179,11 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
## Acknowledgments
- Built with [Ollama](https://ollama.ai) for local AI processing
-- Search powered by [DuckDuckGo](https://duckduckgo.com)
+- Search powered by multiple sources:
+ - [Wikipedia](https://www.wikipedia.org/) for factual knowledge (default search engine)
+ - [arXiv](https://arxiv.org/) for scientific papers
+ - [DuckDuckGo](https://duckduckgo.com) for web search
+ - [SerpAPI](https://serpapi.com) for Google search results (requires API key)
- Built on [LangChain](https://github.com/hwchase17/langchain) framework
- Uses [justext](https://github.com/miso-belica/justext) for content extraction
- [Playwright](https://playwright.dev) for web content retrieval