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
-
Start the Application: Run the CLI tool from your terminal.
python grid/cli.py
-
Input Research Topic: When prompted, enter the topic you would like to research.
-
Choose Header Creation Method:
- Get AI Suggestions: Use the AI to generate suggested headers.
- Create Manually: Input your own headers.
-
Specify Number of Rows: Indicate how many rows of data you wish to generate.
-
Data Generation: The tool will perform a web search using the Bing API and generate structured data based on the retrieved information.
-
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
- OpenAI for providing the models.
- Bing Web Search API for enabling web search capabilities.
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
Built Distribution
File details
Details for the file grid_research-0.1.1.tar.gz
.
File metadata
- Download URL: grid_research-0.1.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09ca2d29c94f06401622e80705dd9afa90159cb3b37a05770d29dcf10da192f9 |
|
MD5 | 39a15324a98c34d711c97cbc9844aeb8 |
|
BLAKE2b-256 | 8efeef8494424d071dcf51df92426c2473105aa2fb73a1ddeefe64fb0d25ee0f |
File details
Details for the file grid_research-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: grid_research-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f88d0f2bdf2a2bfd72bb5d0fee6f1c0b846e7c47eb4f4678377af7c4f185b8b9 |
|
MD5 | cd92197a87785cb7d128b2f972173766 |
|
BLAKE2b-256 | ac62cdaf880aebd0769f400295af3be01dada657ff046081d834e792bb285f5a |