Clarifying Questions Generator for task refinement
Project description
ClarifyingQuestionsGenerator
ClarifyingQuestionsGenerator
is a Python package designed to refine task descriptions through an iterative process of asking clarifying questions. It uses GPT models from OpenAI to generate questions and refine tasks, streamlining the process of task clarification and ensuring tasks are well-understood and actionable.
Installation
To install ClarifyingQuestionsGenerator
, you can use pip:
pip install clarifyquestgen
Usage
As a Python Module
You can use ClarifyingQuestionsGenerator
as a module in your Python scripts.
Example:
from clarifyquestgen import ClarifyingQuestionsGenerator
# Initialize the generator with a task, instruction, and your OpenAI API key
clarifier = ClarifyingQuestionsGenerator(
task="Describe the task here",
instruction="Additional instructions here",
gpt_api_key='your-openai-api-key'
)
# Run the generator to refine your task
refined_task = clarifier.run()
print("Refined Task Description:")
print(refined_task)
Customizing Your Generator
You can customize the behavior of ClarifyingQuestionsGenerator
by adjusting the initialization parameters, such as the model, temperature, max tokens, etc., to fit the specific needs of your application or to tweak the behavior of the GPT model.
Output Example
When you run ClarifyingQuestionsGenerator
, it iteratively asks questions, refines the task, and analyzes its feasibility until a satisfactory level of clarity and feasibility is reached. Here is an example interaction:
Question 1: What specific parts of the database schema need to be refactored?
...user chooses an answer...
Question 2: What is the expected format or style of the comments?
...user chooses an answer...
...
Refined Task Description:
Refined task: Add comments to specific sections or functions within two code files. Follow the expected format for comments and adhere to specific guidelines or conventions provided.
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check issues page.
License
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 clarifyquestgen-0.0.5.tar.gz
.
File metadata
- Download URL: clarifyquestgen-0.0.5.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4490e05d5e4a8e8f2299770ebaccf6ec92db2cb2dc064d15b3c6d128c5d07712 |
|
MD5 | fb46736901671e68f47f5cd5bce0942a |
|
BLAKE2b-256 | 7e9737727e17ad99be1b6232b0c2424ad4b5d13f81cfcc0396fc778be2473ee8 |
File details
Details for the file clarifyquestgen-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: clarifyquestgen-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f808687fa93329ee6212b91e5930fd3cfce14024377d0dc09d7f95bfc343766 |
|
MD5 | 1cff63b5c02bf8e9b5870f87ff613c17 |
|
BLAKE2b-256 | 873e5985091eb4c813f561d4a273a341dba6fdb114adc2beb78d135472776f5e |