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.

docs: update main README with correct HTTP API examples link

LearningCircuit4937cfdd32ab
diff --git a/README.md b/README.md
index 845d83611f..ac01dc4271 100644
--- a/README.md
+++ b/README.md
@@ -244,31 +244,37 @@ print(result["summary"])
### HTTP API
```python
import requests
+from bs4 import BeautifulSoup
# Create session and authenticate
session = requests.Session()
-# First, get the login page to retrieve CSRF token for login
+# Get login page and CSRF token
login_page = session.get("http://localhost:5000/auth/login")
-# Extract CSRF token from HTML form (use BeautifulSoup or regex)
-# For simplicity, assuming you have the token
+soup = BeautifulSoup(login_page.text, "html.parser")
+csrf_input = soup.find("input", {"name": "csrf_token"})
+login_csrf = csrf_input.get("value")
# Login with form data (not JSON) including CSRF token
session.post("http://localhost:5000/auth/login",
- data={"username": "user", "password": "pass", "csrf_token": "..."})
+ data={"username": "user", "password": "pass", "csrf_token": login_csrf})
# Get CSRF token for API requests
csrf = session.get("http://localhost:5000/auth/csrf-token").json()["csrf_token"]
-# Make API request with CSRF header
+# Make API request with correct endpoint and CSRF header
response = session.post(
- "http://localhost:5000/research/api/start",
+ "http://localhost:5000/api/start_research", # Updated endpoint
json={"query": "Explain CRISPR gene editing"},
headers={"X-CSRF-Token": csrf}
)
```
-[More Examples →](examples/api_usage/)
+🚀 **[Working HTTP API Examples → examples/api_usage/http/](examples/api_usage/http/)**
+- ✅ **Out-of-the-box examples** with automatic user creation
+- ✅ **Correct endpoints** and proper authentication
+- ✅ **Retry logic** for fetching results automatically
+- ✅ **Progress monitoring** and error handling
### Command Line Tools