Skip to main content

An AI research bot that uses web sources

Project description

AI Research Assistant

An automated research tool that uses web scraping, AI, and natural language processing to gather, analyze, and synthesize information on specified topics.

Features

  • Automated web searching and content extraction
  • AI-powered content analysis and summarization
  • Duplicate content detection and removal
  • Progress tracking and research history
  • Customizable research parameters
  • Structured output in various formats
  • File-based research organization

Requirements

  • Python 3.x
  • OpenAI API key
  • Internet connection

Dependencies

openai
googlesearch-python
requests
beautifulsoup4
datetime

Installation

  1. Clone the repository
  2. Install required packages:
pip install openai googlesearch-python requests beautifulsoup4
  1. Set up your API key

Usage

researchBot = ResearchSession()
researchBot.apiKey = 'your-api-key'
researchBot.topic = 'Your Research Topic'
researchBot.numSources = 3  # Number of desired sources
researchBot.outputFormat = 'formal essay'  # Or other format
researchBot.startResearch()

File Structure

The program creates a research folder with timestamped subfolders containing:

  • links.txt: List of discovered URLs
  • history.txt: Research session history
  • extracted_data.txt: Processed content from sources
  • final_research.txt: Final compiled research output

Key Methods

  • webSearch(): Performs Google searches
  • readWebpage(): Extracts content from URLs
  • getAIResponse(): Interfaces with AI for analysis
  • cleanLinksFileForDuplicates(): Removes duplicate sources
  • cleanExtractedDataFileForDuplicateData(): Removes redundant content
  • finalize(): Generates final research document

Research Process

  1. Conducts web searches for relevant sources
  2. Extracts and processes content from sources
  3. AI analyzes and summarizes information
  4. Removes duplicates and organizes data
  5. Continues until research criteria are met
  6. Generates final formatted document

Notes

  • Requires valid API key for AI services
  • Research quality depends on source availability
  • Internet connectivity required throughout process
  • Output format can be customized

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gptresearch-5.0.2.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gptresearch-5.0.2-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file gptresearch-5.0.2.tar.gz.

File metadata

  • Download URL: gptresearch-5.0.2.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for gptresearch-5.0.2.tar.gz
Algorithm Hash digest
SHA256 67a63a6e4c3b3b7534c6ec61ef2d52bc917eb98aee8c98d70b54b0b97976bcc7
MD5 a10f8a26a5f63e94fffe867b56ac5b87
BLAKE2b-256 b56fa0dcb1e60aebc7ee6d8854f61272f64acef54bc9e26dade33922ed748d65

See more details on using hashes here.

File details

Details for the file gptresearch-5.0.2-py3-none-any.whl.

File metadata

  • Download URL: gptresearch-5.0.2-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for gptresearch-5.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2eae916ba4423a56caedd4993f28e4e37b588e8b6ebd8e972359be8d0b291950
MD5 1c014bf976446eb38b8a731b18bc6788
BLAKE2b-256 326587de6e2f34e4ba4d17d97499268b017e4bee4d23338150a582522812e384

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page