Examples¶
This page provides examples of using The DETERMINATOR for various research tasks.
Basic Research Query¶
Example 1: Drug Information¶
Query:
What The DETERMINATOR Does: 1. Searches PubMed for recent papers 2. Searches ClinicalTrials.gov for active trials 3. Evaluates evidence quality 4. Synthesizes findings into a comprehensive report
Example 2: Clinical Trial Search¶
Query:
What The DETERMINATOR Does:
- Searches ClinicalTrials.gov for relevant trials
- Searches PubMed for supporting literature
- Provides trial details and status
- Summarizes findings
Advanced Research Queries¶
Example 3: Comprehensive Review¶
Query:
Review the evidence for using metformin as an anti-aging intervention,
including clinical trials, mechanisms of action, and safety profile.
What The DETERMINATOR Does: 1. Uses deep research mode (multi-section) 2. Searches multiple sources in parallel 3. Generates sections on: - Clinical trials - Mechanisms of action - Safety profile 4. Synthesizes comprehensive report
Example 4: Hypothesis Testing¶
Query:
What The DETERMINATOR Does: 1. Generates testable hypotheses 2. Searches for supporting/contradicting evidence 3. Performs statistical analysis (if Modal configured) 4. Provides verdict: SUPPORTED, REFUTED, or INCONCLUSIVE
MCP Tool Examples¶
Using search_pubmed¶
Using search_clinical_trials¶
Using search_all¶
Using analyze_hypothesis¶
Code Examples¶
Python API Usage¶
from src.orchestrator_factory import create_orchestrator
from src.tools.search_handler import SearchHandler
from src.agent_factory.judges import create_judge_handler
# Create orchestrator
search_handler = SearchHandler()
judge_handler = create_judge_handler()
# Run research query
query = "What are the latest treatments for Alzheimer's disease?"
async for event in orchestrator.run(query):
print(f"Event: {event.type} - {event.data}")
Gradio UI Integration¶
import gradio as gr
from src.app import create_research_interface
# Create interface
interface = create_research_interface()
# Launch
interface.launch(server_name="0.0.0.0", server_port=7860)
Research Patterns¶
Iterative Research¶
Single-loop research with search-judge-synthesize cycles:
Deep Research¶
Multi-section parallel research:
Configuration Examples¶
Basic Configuration¶
Advanced Configuration¶
# .env file
LLM_PROVIDER=anthropic
ANTHROPIC_API_KEY=your_key_here
EMBEDDING_PROVIDER=local
WEB_SEARCH_PROVIDER=duckduckgo
MAX_ITERATIONS=20
DEFAULT_TOKEN_LIMIT=200000
USE_GRAPH_EXECUTION=true
Next Steps¶
- Read the Configuration Guide for all options
- Explore the Architecture Documentation
- Check out the API Reference for programmatic usage