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

LearningCircuitcf20ee895672
diff --git a/README.md b/README.md
index fd3ffc21f9..0cff426a27 100644
--- a/README.md
+++ b/README.md
@@ -57,6 +57,47 @@ For comprehensive Docker setup information, see:
- [Docker Usage Guide](https://github.com/LearningCircuit/local-deep-research/blob/main/docs/docker-usage-readme.md)
- [Docker Compose Guide](https://github.com/LearningCircuit/local-deep-research/blob/main/docs/docker-compose-guide.md)
+## Programmatic Access
+
+Local Deep Research now provides a simple API for programmatic access to its research capabilities:
+
+```python
+from local_deep_research import quick_summary, generate_report, analyze_documents
+
+# Generate a quick research summary with custom parameters
+results = quick_summary(
+ query="advances in fusion energy",
+ search_tool="auto", # Auto-select the best search engine
+ iterations=1, # Single research cycle for speed
+ questions_per_iteration=2, # Generate 2 follow-up questions
+ max_results=30, # Consider up to 30 search results
+ temperature=0.7 # Control creativity of generation
+)
+print(results["summary"])
+
+# Create a comprehensive structured report with custom parameters
+report = generate_report(
+ query="impact of quantum computing on cryptography",
+ search_tool="wikipedia", # Use Wikipedia as source
+ iterations=2, # Two research cycles
+ questions_per_iteration=3, # Three questions per cycle
+ searches_per_section=2, # Two searches per report section
+ output_file="quantum_report.md" # Save to file
+)
+print(report["content"])
+
+# Analyze documents in a local collection with custom parameters
+docs = analyze_documents(
+ query="renewable energy",
+ collection_name="research_papers",
+ max_results=15, # Return up to 15 matching documents
+ force_reindex=False, # Don't reindex the collection
+ output_file="energy_analysis.md" # Save results to this file
+)
+```
+
+These functions provide flexible options for customizing the search parameters, iterations, and output formats. For more examples, see the [programmatic access tutorial](https://github.com/LearningCircuit/local-deep-research/examples/programmatic_access.ipynb).
+
## Features
@@ -239,27 +280,6 @@ You can use local document search in several ways:
3. **All collections**: Set `tool = "local_all"` to search across all collections
4. **Query syntax**: Type `collection:project_docs your query` to target a specific collection
-## Programmatic Access
-
-Local Deep Research now provides a simple API for programmatic access to its research capabilities:
-
-```python
-from local_deep_research import quick_summary, generate_report
-
-# Generate a quick research summary
-results = quick_summary("advances in fusion energy")
-print(results["summary"])
-
-# Create a comprehensive structured report
-report = generate_report("impact of quantum computing on cryptography")
-print(report["content"])
-
-# Analyze documents in a local collection
-from local_deep_research import analyze_documents
-docs = analyze_documents("renewable energy", "research_papers")
-```
-
-These functions provide flexible options for customizing the search parameters, iterations, and output formats. For more examples, see the [programmatic access tutorial](https://github.com/LearningCircuit/local-deep-research/blob/programmatic-access/examples/programmatic_access.ipynb).
## Advanced Configuration