{
  "markdown": "<div align=\"center\" id=\"top\">\n\n<img src=\"https://github.com/assafelovic/gpt-researcher/assets/13554167/20af8286-b386-44a5-9a83-3be1365139c3\" alt=\"Logo\" width=\"80\">\n\n####\n\n[![Website](https://img.shields.io/badge/Official%20Website-gptr.dev-teal?style=for-the-badge&logo=world&logoColor=white&color=0891b2)](https://gptr.dev)\n[![Documentation](https://img.shields.io/badge/Documentation-DOCS-f472b6?logo=googledocs&logoColor=white&style=for-the-badge)](https://docs.gptr.dev)\n[![Discord](https://img.shields.io/discord/1127851779011391548?logo=discord&logoColor=white&label=Discord&color=34b76a&style=for-the-badge)](https://discord.gg/QgZXvJAccX)\n\n\n[![PyPI version](https://img.shields.io/pypi/v/gpt-researcher?logo=pypi&logoColor=white&style=flat)](https://badge.fury.io/py/gpt-researcher)\n![GitHub Release](https://img.shields.io/github/v/release/assafelovic/gpt-researcher?style=flat&logo=github)\n[![Open In Colab](https://img.shields.io/static/v1?message=Open%20in%20Colab&logo=googlecolab&labelColor=grey&color=yellow&label=%20&style=flat&logoSize=40)](https://colab.research.google.com/github/assafelovic/gpt-researcher/blob/master/docs/docs/examples/pip-run.ipynb)\n[![Docker Image Version](https://img.shields.io/docker/v/elestio/gpt-researcher/latest?arch=amd64&style=flat&logo=docker&logoColor=white&color=1D63ED)](https://hub.docker.com/r/gptresearcher/gpt-researcher)\n[![Skill](https://img.shields.io/badge/Claude%20Skill-skills.sh-blueviolet?style=flat&logo=anthropic&logoColor=white)](https://skills.sh/assafelovic/gpt-researcher/gpt-researcher)\n[![Twitter Follow](https://img.shields.io/twitter/follow/assaf_elovic?style=social)](https://twitter.com/assaf_elovic)\n\n[English](README.md) | [中文](README-zh_CN.md) | [日本語](README-ja_JP.md) | [한국어](README-ko_KR.md)\n\n</div>\n\n# 🔎 GPT Researcher\n\n**GPT Researcher the first open deep research agent designed for both web and local research on any given task.** \n\nThe agent produces detailed, factual, and unbiased research reports with citations. GPT Researcher provides a full suite of customization options to create tailor made and domain specific research agents. Inspired by the recent [Plan-and-Solve](https://arxiv.org/abs/2305.04091) and [RAG](https://arxiv.org/abs/2005.11401) papers, GPT Researcher addresses misinformation, speed, determinism, and reliability by offering stable performance and increased speed through parallelized agent work.\n\n**Our mission is to empower individuals and organizations with accurate, unbiased, and factual information through AI.**\n\n## Why GPT Researcher?\n\n- Objective conclusions for manual research can take weeks, requiring vast resources and time.\n- LLMs trained on outdated information can hallucinate, becoming irrelevant for current research tasks.\n- Current LLMs have token limitations, insufficient for generating long research reports.\n- Limited web sources in existing services lead to misinformation and shallow results.\n- Selective web sources can introduce bias into research tasks.\n\n## Demo\n<a href=\"https://www.youtube.com/watch?v=f60rlc_QCxE\" target=\"_blank\" rel=\"noopener\">\n  <img src=\"https://github.com/user-attachments/assets/ac2ec55f-b487-4b3f-ae6f-b8743ad296e4\" alt=\"Demo video\" width=\"800\" target=\"_blank\" />\n</a>\n\n## Install as Claude Skill\n\nExtend Claude's deep research capabilities by installing GPT Researcher as a [Claude Skill](https://skills.sh/assafelovic/gpt-researcher/gpt-researcher):\n\n```bash\nnpx skills add assafelovic/gpt-researcher\n```\n\nOnce installed, Claude can leverage GPT Researcher's deep research capabilities directly within your conversations.\n\n## Architecture\n\nThe core idea is to utilize 'planner' and 'execution' agents. The planner generates research questions, while the execution agents gather relevant information. The publisher then aggregates all findings into a comprehensive report.\n\n<div align=\"center\">\n<img align=\"center\" height=\"600\" src=\"https://github.com/assafelovic/gpt-researcher/assets/13554167/4ac896fd-63ab-4b77-9688-ff62aafcc527\">\n</div>\n\nSteps:\n* Create a task-specific agent based on a research query.\n* Generate questions that collectively form an objective opinion on the task.\n* Use a crawler agent for gathering information for each question.\n* Summarize and source-track each resource.\n* Filter and aggregate summaries into a final research report.\n\n## Tutorials\n - [How it Works](https://docs.gptr.dev/blog/building-gpt-researcher)\n - [How to Install](https://www.loom.com/share/04ebffb6ed2a4520a27c3e3addcdde20?sid=da1848e8-b1f1-42d1-93c3-5b0b9c3b24ea)\n - [Live Demo](https://www.loom.com/share/6a3385db4e8747a1913dd85a7834846f?sid=a740fd5b-2aa3-457e-8fb7-86976f59f9b8)\n\n## Features\n\n- 📝 Generate detailed research reports using web and local documents.\n- 🖼️ Smart image scraping and filtering for reports.\n- 🍌 **AI-generated inline images** using Google Gemini (Nano Banana) for visual illustrations.\n- 📜 Generate detailed reports exceeding 2,000 words.\n- 🌐 Aggregate over 20 sources for objective conclusions.\n- 🖥️ Frontend available in lightweight (HTML/CSS/JS) and production-ready (NextJS + Tailwind) versions.\n- 🔍 JavaScript-enabled web scraping.\n- 📂 Maintains memory and context throughout research.\n- 📄 Export reports to PDF, Word, and other formats.\n\n## 📖 Documentation\n\nSee the [Documentation](https://docs.gptr.dev/docs/gpt-researcher/getting-started) for:\n- Installation and setup guides\n- Configuration and customization options\n- How-To examples\n- Full API references\n\n## ⚙️ Getting Started\n\n### Installation\n\n1. Install Python 3.11 or later. [Guide](https://www.tutorialsteacher.com/python/install-python).\n2. Clone the project and navigate to the directory:\n\n    ```bash\n    git clone https://github.com/assafelovic/gpt-researcher.git\n    cd gpt-researcher\n    ```\n\n3. Set up API keys by exporting them or storing them in a `.env` file.\n\n    ```bash\n    export OPENAI_API_KEY={Your OpenAI API Key here}\n    export TAVILY_API_KEY={Your Tavily API Key here}\n    ```\n\n    (Optional) For enhanced tracing and observability, you can also set:\n    \n    ```bash\n    # export LANGCHAIN_TRACING_V2=true\n    # export LANGCHAIN_API_KEY={Your LangChain API Key here}\n    ```\n\n    For custom OpenAI-compatible APIs (e.g., local models, other providers), you can also set:\n    \n    ```bash\n    export OPENAI_BASE_URL={Your custom API base URL here}\n    ```\n\n4. Install dependencies and start the server:\n\n    ```bash\n    pip install -r requirements.txt\n    python -m uvicorn main:app --reload\n    ```\n\nVisit [http://localhost:8000](http://localhost:8000) to start.\n\nFor other setups (e.g., Poetry or virtual environments), check the [Getting Started page](https://docs.gptr.dev/docs/gpt-researcher/getting-started).\n\n## Run as PIP package\n```bash\npip install gpt-researcher\n\n```\n### Example Usage:\n```python\n...\nfrom gpt_researcher import GPTResearcher\n\nquery = \"why is Nvidia stock going up?\"\nresearcher = GPTResearcher(query=query)\n# Conduct research on the given query\nresearch_result = await researcher.conduct_research()\n# Write the report\nreport = await researcher.write_report()\n...\n```\n\n**For more examples and configurations, please refer to the [PIP documentation](https://docs.gptr.dev/docs/gpt-researcher/gptr/pip-package) page.**\n\n### 🔧 MCP Client\nGPT Researcher supports MCP integration to connect with specialized data sources like GitHub repositories, databases, and custom APIs. This enables research from data sources alongside web search.\n\n```bash\nexport RETRIEVER=tavily,mcp  # Enable hybrid web + MCP research\n```\n\n```python\nfrom gpt_researcher import GPTResearcher\nimport asyncio\nimport os\n\nasync def mcp_research_example():\n    # Enable MCP with web search\n    os.environ[\"RETRIEVER\"] = \"tavily,mcp\"\n    \n    researcher = GPTResearcher(\n        query=\"What are the top open source web research agents?\",\n        mcp_configs=[\n            {\n                \"name\": \"github\",\n                \"command\": \"npx\",\n                \"args\": [\"-y\", \"@modelcontextprotocol/server-github\"],\n                \"env\": {\"GITHUB_TOKEN\": os.getenv(\"GITHUB_TOKEN\")}\n            }\n        ]\n    )\n    \n    research_result = await researcher.conduct_research()\n    report = await researcher.write_report()\n    return report\n```\n\n> For comprehensive MCP documentation and advanced examples, visit the [MCP Integration Guide](https://docs.gptr.dev/docs/gpt-researcher/retrievers/mcp-configs).\n\n## 🍌 Inline Image Generation\n\nGPT Researcher can automatically generate and embed AI-created illustrations in your research reports using Google's Gemini models (Nano Banana).\n\n```bash\n# Enable in your .env file\nIMAGE_GENERATION_ENABLED=true\nGOOGLE_API_KEY=your_google_api_key\nIMAGE_GENERATION_MODEL=models/gemini-2.5-flash-image\n```\n\nWhen enabled, the system will:\n1. Analyze your research context to identify visualization opportunities\n2. Pre-generate 2-3 relevant images during the research phase\n3. Embed them inline as the report is written\n\nImages are generated with dark-mode styling that matches the GPT Researcher UI, featuring professional infographic aesthetics with teal accents.\n\n[Learn more about Image Generation](https://docs.gptr.dev/docs/gpt-researcher/gptr/image_generation) in our documentation.\n\n## ✨ Deep Research\n\nGPT Researcher now includes Deep Research - an advanced recursive research workflow that explores topics with agentic depth and breadth. This feature employs a tree-like exploration pattern, diving deeper into subtopics while maintaining a comprehensive view of the research subject.\n\n- 🌳 Tree-like exploration with configurable depth and breadth\n- ⚡️ Concurrent processing for faster results\n- 🤝 Smart context management across research branches\n- ⏱️ Takes ~5 minutes per deep research\n- 💰 Costs ~$0.4 per research (using `o3-mini` on \"high\" reasoning effort)\n\n[Learn more about Deep Research](https://docs.gptr.dev/docs/gpt-researcher/gptr/deep_research) in our documentation.\n\n## Run with Docker\n\n> **Step 1** - [Install Docker](https://docs.gptr.dev/docs/gpt-researcher/getting-started/getting-started-with-docker)\n\n> **Step 2** - Clone the '.env.example' file, add your API Keys to the cloned file and save the file as '.env'\n\n> **Step 3** - Within the docker-compose file comment out services that you don't want to run with Docker.\n\n```bash\ndocker-compose up --build\n```\n\nIf that doesn't work, try running it without the dash:\n```bash\ndocker compose up --build\n```\n\n> **Step 4** - By default, if you haven't uncommented anything in your docker-compose file, this flow will start 2 processes:\n - the Python server running on localhost:8000<br>\n - the React app running on localhost:3000<br>\n\nVisit localhost:3000 on any browser and enjoy researching!\n\n\n## 📄 Research on Local Documents\n\nYou can instruct the GPT Researcher to run research tasks based on your local documents. Currently supported file formats are: PDF, plain text, CSV, Excel, Markdown, PowerPoint, and Word documents.\n\nStep 1: Add the env variable `DOC_PATH` pointing to the folder where your documents are located.\n\n```bash\nexport DOC_PATH=\"./my-docs\"\n```\n\nStep 2: \n - If you're running the frontend app on localhost:8000, simply select \"My Documents\" from the \"Report Source\" Dropdown Options.\n - If you're running GPT Researcher with the [PIP package](https://docs.tavily.com/guides/gpt-researcher/gpt-researcher#pip-package), pass the `report_source` argument as \"local\" when you instantiate the `GPTResearcher` class [code sample here](https://docs.gptr.dev/docs/gpt-researcher/context/tailored-research).\n\n\n## 🤖 MCP Server\n\nWe've moved our MCP server to a dedicated repository: [gptr-mcp](https://github.com/assafelovic/gptr-mcp).\n\nThe GPT Researcher MCP Server enables AI applications like Claude to conduct deep research. While LLM apps can access web search tools with MCP, GPT Researcher MCP delivers deeper, more reliable research results.\n\nFeatures:\n- Deep research capabilities for AI assistants\n- Higher quality information with optimized context usage\n- Comprehensive results with better reasoning for LLMs\n- Claude Desktop integration\n\nFor detailed installation and usage instructions, please visit the [official repository](https://github.com/assafelovic/gptr-mcp).\n\n\n## 👪 Multi-Agent Assistant\nAs AI evolves from prompt engineering and RAG to multi-agent systems, we're excited to introduce multi-agent assistants built with [LangGraph](https://python.langchain.com/v0.1/docs/langgraph/) and [AG2](https://github.com/ag2ai/ag2).\n\nBy using multi-agent frameworks, the research process can be significantly improved in depth and quality by leveraging multiple agents with specialized skills. Inspired by the recent [STORM](https://arxiv.org/abs/2402.14207) paper, this project showcases how a team of AI agents can work together to conduct research on a given topic, from planning to publication.\n\nAn average run generates a 5-6 page research report in multiple formats such as PDF, Docx and Markdown.\n\nCheck it out [here](https://github.com/assafelovic/gpt-researcher/tree/master/multi_agents) or head over to our documentation for [LangGraph](https://docs.gptr.dev/docs/gpt-researcher/multi_agents/langgraph) and [AG2](https://docs.gptr.dev/docs/gpt-researcher/multi_agents/ag2) for more information.\n\n## 🔍 Observability\n\nGPT Researcher supports **LangSmith** for enhanced tracing and observability, making it easier to debug and optimize complex multi-agent workflows.\n\nTo enable tracing:\n1. Set the following environment variables:\n   ```bash\n   export LANGCHAIN_TRACING_V2=true\n   export LANGCHAIN_API_KEY=your_api_key\n   export LANGCHAIN_PROJECT=\"gpt-researcher\"\n   ```\n2. Run your research tasks as usual. All LangGraph-based agent interactions will be automatically traced and visualized in your LangSmith dashboard.\n\n#### Monocle Tracing\n\nGPT Researcher also supports [Monocle](https://github.com/monocle2ai/monocle), an OpenTelemetry-based tracer for agentic applications. It records each run end-to-end: LLM calls, agent steps, and tool invocations, with their inputs, outputs, timings, and token counts.\n\nMonocle is an opt-in extra and is off by default. Install it, then add the following to your `.env` file:\n\n```bash\npip install \"gpt-researcher[monocle]\"\n```\n\n```bash\nMONOCLE_TRACING=true\nMONOCLE_EXPORTERS=file          # file, console, okahu, s3, blob, gcs (default: file)\nOKAHU_API_KEY=okh_xxxxxxxx      # required only for the `okahu` exporter\n```\n\nEach run writes one trace file to `.monocle/`; open it in the [Monocle VS Code extension](https://marketplace.visualstudio.com/items?itemName=OkahuAI.monocle-apptrace). Connect to [Okahu](https://www.okahu.ai) to analyze traces across runs (via the `okahu` exporter).\n\n## 🖥️ Frontend Applications\n\nGPT-Researcher now features an enhanced frontend to improve the user experience and streamline the research process. The frontend offers:\n\n- An intuitive interface for inputting research queries\n- Real-time progress tracking of research tasks\n- Interactive display of research findings\n- Customizable settings for tailored research experiences\n\nTwo deployment options are available:\n1. A lightweight static frontend served by FastAPI\n2. A feature-rich NextJS application for advanced functionality\n\nFor detailed setup instructions and more information about the frontend features, please visit our [documentation page](https://docs.gptr.dev/docs/gpt-researcher/frontend/introduction).\n\n## 🚀 Contributing\nWe highly welcome contributions! Please check out [contributing](https://github.com/assafelovic/gpt-researcher/blob/master/CONTRIBUTING.md) if you're interested.\n\nPlease check out our [roadmap](https://trello.com/b/3O7KBePw/gpt-researcher-roadmap) page and reach out to us via our [Discord community](https://discord.gg/QgZXvJAccX) if you're interested in joining our mission.\n<a href=\"https://github.com/assafelovic/gpt-researcher/graphs/contributors\">\n  <img src=\"https://contrib.rocks/image?repo=assafelovic/gpt-researcher&max=1000\" />\n</a>\n## ✉️ Support / Contact us\n- [Community Discord](https://discord.gg/spBgZmm3Xe)\n- Author Email: assaf.elovic@gmail.com\n\n## 🛡 Disclaimer\n\nThis project, GPT Researcher, is an experimental application and is provided \"as-is\" without any warranty, express or implied. We are sharing codes for academic purposes under the Apache 2 license. Nothing herein is academic advice, and NOT a recommendation to use in academic or research papers.\n\nOur view on unbiased research claims:\n1. The main goal of GPT Researcher is to reduce incorrect and biased facts. How? We assume that the more sites we scrape the less chances of incorrect data. By scraping multiple sites per research, and choosing the most frequent information, the chances that they are all wrong is extremely low.\n2. We do not aim to eliminate biases; we aim to reduce it as much as possible. **We are here as a community to figure out the most effective human/llm interactions.**\n3. In research, people also tend towards biases as most have already opinions on the topics they research about. This tool scrapes many opinions and will evenly explain diverse views that a biased person would never have read.\n\n---\n\n<p align=\"center\">\n<a href=\"https://star-history.dera.page/#assafelovic/gpt-researcher\">\n  <picture>\n    <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://star-history.dera.page/svg?repos=assafelovic/gpt-researcher&type=Date&theme=dark\" />\n    <source media=\"(prefers-color-scheme: light)\" srcset=\"https://star-history.dera.page/svg?repos=assafelovic/gpt-researcher&type=Date\" />\n    <img alt=\"Star History Chart\" src=\"https://star-history.dera.page/svg?repos=assafelovic/gpt-researcher&type=Date\" />\n  </picture>\n</a>\n</p>\n\n\n<p align=\"right\">\n  <a href=\"#top\">⬆️ Back to Top</a>\n</p>\n",
  "bytes": 17707,
  "sha": "d79bbcd7196317af10b6cc84baf30bb84ad0fc67d16dd61552fc139461548507",
  "repo_slug": "assafelovic/gpt-researcher",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/skl_assafelovic_gpt_researcher_gpt_researche_1e53f6e4/readme"
}