Skip to main content

A package for automated research data collection using LLMs and Web Search API

Project description

AI Research CLI Tool

Overview

The AI Research CLI Tool is a command-line interface designed to assist users in generating structured, tabular data for research purposes. By leveraging the Bing Web Search API and the GPT-4o model, this tool transforms raw research topics into organized data that can be easily exported and utilized.

Features

  • AI-Suggested Column Headers: Automatically generate relevant column headers and descriptions for your research data.
  • Custom Header Editing: Modify or create your own headers to suit your specific research needs.
  • Data Generation: Generate between 1 to 100 rows of structured research data based on your queries.
  • Beautiful Terminal Interface: Enjoy a visually appealing and user-friendly command-line interface.
  • Export-Ready Data: Easily export the generated data in a structured format for further analysis.

Installation

To install the necessary dependencies, you can use the following command:

pip install -r requirements.txt

Usage

  1. Start the Application: Run the CLI tool from your terminal.

    python main.py
    
  2. Input Research Topic: When prompted, enter the topic you would like to research.

  3. Choose Header Creation Method:

    • Get AI Suggestions: Use the AI to generate suggested headers.
    • Create Manually: Input your own headers.
  4. Specify Number of Rows: Indicate how many rows of data you wish to generate.

  5. Data Generation: The tool will perform a web search using the Bing API and generate structured data based on the retrieved information.

  6. Export Data: The generated data will be returned in a pandas.DataFrame, ready for your use.

Requirements

  • Python 3.8 or higher
  • OpenAI API Key
  • Bing Search API Key

Environment Variables

Make sure to set the following environment variables in your .env file:

OPENAI_API_KEY=your_openai_api_key
BING_SEARCH_V7_SUBSCRIPTION_KEY=your_bing_search_api_key

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgments

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

grid_research-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

grid_research-0.1.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file grid_research-0.1.0.tar.gz.

File metadata

  • Download URL: grid_research-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.1

File hashes

Hashes for grid_research-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6cca21e22cbba75539eac78adcefb754c811f7935fbe2fe39d304ccb73559d62
MD5 24de08d4509e2e52bab6536434ae82f1
BLAKE2b-256 7ec53ca4f822672bc3c01aae228d50dc1a9fe6033140c53eaf14cb7fcef00b60

See more details on using hashes here.

File details

Details for the file grid_research-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for grid_research-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c30db4516e4428eaf199e4c4ec538e47f7d480542538c833e25a68dcf409c108
MD5 8564d20e9a47da33be00b6d4ea42a81f
BLAKE2b-256 9da5be85fc3642292997c128e05b730a2e1012935b09694018286b779c5fd613

See more details on using hashes here.

Supported by

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