Deep Research

View as Markdown

NeuraAI’s deep research capabilities enable comprehensive analysis and investigation of complex topics. These specialized models can conduct multi-source research, synthesize information, and provide detailed analytical reports.

Overview

Deep research models are designed for tasks that require:

  • Comprehensive information gathering from multiple sources
  • Critical analysis and synthesis of data
  • Detailed, evidence-based conclusions
  • Citation of sources and supporting evidence

Basic Usage

1from openai import OpenAI
2
3client = OpenAI(
4 base_url="https://api.neura-ai.app/v1",
5 timeout=3600 # Research tasks may take longer
6)
7
8input_text = """
9Research the economic impact of semaglutide on global healthcare systems.
10Do:
11- Include specific figures, trends, statistics, and measurable outcomes.
12- Prioritize reliable, up-to-date sources: peer-reviewed research, health
13 organizations (e.g., WHO, CDC), regulatory agencies, or pharmaceutical
14 earnings reports.
15- Include inline citations and return all source metadata.
16
17Be analytical, avoid generalities, and ensure that each section supports
18data-backed reasoning that could inform healthcare policy or financial modeling.
19"""
20
21response = client.responses.create(
22 model="sonar-deep-research",
23 input=input_text,
24 tools=[
25 {"type": "web_search_preview"},
26 {"type": "code_interpreter", "container": {"type": "auto"}},
27 ],
28)
29
30print(response.output_text)

Available Tools

Enables the model to search for current information online:

1tools=[
2 {"type": "web_search_preview"}
3]

Code Interpreter

Allows the model to execute code for data analysis:

1tools=[
2 {"type": "code_interpreter", "container": {"type": "auto"}}
3]

Combined Approach

Use multiple tools for comprehensive research:

1tools=[
2 {"type": "web_search_preview"},
3 {"type": "code_interpreter", "container": {"type": "auto"}}
4]

Example Use Cases

Market Research

1response = client.responses.create(
2 model="sonar-deep-research",
3 input="""
4 Analyze the current state of the electric vehicle market in Europe.
5 Include:
6 - Market size and growth projections for 2024-2026
7 - Leading manufacturers and their market share
8 - Government policies affecting adoption
9 - Infrastructure development trends
10 - Consumer sentiment data
11
12 Provide specific figures and cite all sources.
13 """,
14 tools=[{"type": "web_search_preview"}]
15)

Scientific Literature Review

1response = client.responses.create(
2 model="sonar-deep-research",
3 input="""
4 Conduct a comprehensive review of recent advances in CRISPR gene editing
5 technology (2023-2024). Focus on:
6 - Clinical trial results
7 - New applications and methodologies
8 - Ethical considerations and regulations
9 - Future research directions
10
11 Reference peer-reviewed publications and clinical data.
12 """,
13 tools=[{"type": "web_search_preview"}]
14)

Competitive Analysis

1response = client.responses.create(
2 model="sonar-deep-research",
3 input="""
4 Compare the business models, pricing strategies, and market positioning
5 of the top 5 cloud infrastructure providers.
6
7 Analyze:
8 - Service offerings and differentiation
9 - Pricing structures and total cost of ownership
10 - Target customer segments
11 - Recent financial performance
12 - Strategic partnerships and acquisitions
13 """,
14 tools=[
15 {"type": "web_search_preview"},
16 {"type": "code_interpreter", "container": {"type": "auto"}}
17 ]
18)

Data-Driven Analysis

1response = client.responses.create(
2 model="sonar-deep-research",
3 input="""
4 Investigate the correlation between remote work adoption and
5 commercial real estate values in major US cities (2020-2024).
6
7 Use statistical analysis to:
8 - Identify trends in office space vacancy rates
9 - Correlate with property values
10 - Compare across different cities
11 - Project future implications
12
13 Include data visualizations where appropriate.
14 """,
15 tools=[
16 {"type": "web_search_preview"},
17 {"type": "code_interpreter", "container": {"type": "auto"}}
18 ]
19)

Best Practices

Clear Research Objectives

Define what you want to learn and what constitutes a complete answer:

1input_text = """
2Research Question: How has AI impacted software development productivity?
3
4Scope:
5- Time period: 2022-2024
6- Focus on: Code completion tools, automated testing, and bug detection
7- Metrics: Developer productivity, code quality, time savings
8
9Required:
10- Quantitative data from studies or surveys
11- Case studies from companies implementing these tools
12- Expert opinions from industry leaders
13"""

Specify Source Quality

Guide the model toward reliable sources:

1input_text = """
2Research renewable energy adoption in developing nations.
3
4Source Requirements:
5- Prefer: Academic journals, international organizations (UN, World Bank),
6 government reports
7- Include: Industry reports from reputable firms
8- Avoid: Blog posts, opinion pieces, unverified claims
9"""

Request Structure

Ask for organized, actionable output:

1input_text = """
2Analyze smartphone market trends in Asia.
3
4Output Structure:
51. Executive Summary (key findings)
62. Market Size and Growth
73. Competitive Landscape
84. Consumer Preferences
95. Future Outlook
106. Sources and References
11"""

Timeout Considerations

Research tasks can take significant time. Set appropriate timeouts:

1client = OpenAI(
2 base_url="https://api.neura-ai.app/v1",
3 timeout=3600 # 1 hour for complex research
4)

Tips for Effective Research

  • Be specific about the scope and depth required
  • Request citations and source verification
  • Ask for data visualizations when analyzing numbers
  • Specify the format you need (report, summary, bullet points)
  • Set realistic timeouts for complex queries
  • Review and verify critical findings independently