UltraGPT: A modular library for advanced GPT-based reasoning and step pipelines
Project description
🤖 UltraGPT
A powerful and modular library for advanced GPT-based reasoning and step pipelines
🌟 Features
-
📝 Steps Pipeline: Break down complex tasks into manageable steps
- Automatic step generation and processing
- Verification at each step
- Detailed progress tracking
-
🧠 Reasoning Pipeline: Advanced reasoning capabilities
- Multi-iteration thought process
- Building upon previous reasoning
- Comprehensive analysis
-
🛠️ Tool Integration:
- Web search capabilities
- Calculator functionality
- Extensible tool framework
📦 Installation
pip install git+https://github.com/Kawai-Senpai/UltraGPT.git
🚀 Quick Start
from ultragpt import UltraGPT
if __name__ == "__main__":
# Initialize UltraGPT
ultragpt = UltraGPT(
api_key="your-openai-api-key",
verbose=True
)
# Example chat session
final_output, tokens_used, details = ultragpt.chat([
{"role": "user", "content": "Write a story about an elephant."}
])
print("Final Output:", final_output)
print("Total tokens used:", tokens_used)
📚 Advanced Usage
Customizing Pipeline Settings
ultragpt = UltraGPT(
api_key="your-openai-api-key",
model="gpt-4o", # Specify model
temperature=0.7, # Adjust creativity
reasoning_iterations=3, # Set reasoning depth
steps_pipeline=True,
reasoning_pipeline=True,
verbose=True
)
Using Tools
ultragpt = UltraGPT(
api_key="your-openai-api-key",
tools=["web-search", "calculator"],
tools_config={
"web-search": {
"max_results": 1,
"model": "gpt-4o"
},
"calculator": {
"model": "gpt-4o"
}
}
)
🔧 Configuration Options
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key |
str | Required | Your OpenAI API key |
model |
str | "gpt-4o" | Model to use |
temperature |
float | 0.7 | Output randomness |
reasoning_iterations |
int | 3 | Number of reasoning steps |
tools |
list | [] | Enabled tools |
verbose |
bool | False | Enable detailed logging |
🌐 Tool System
UltraGPT supports various tools to enhance its capabilities:
Web Search
- Performs intelligent web searches
- Summarizes findings
- Integrates results into responses
Calculator
- Handles mathematical operations
- Supports complex calculations
- Provides step-by-step solutions
🔄 Pipeline System
Steps Pipeline
- Task Analysis
- Step Generation
- Step-by-Step Execution
- Progress Verification
- Final Compilation
Reasoning Pipeline
- Initial Analysis
- Multi-iteration Thinking
- Thought Development
- Conclusion Formation
📋 Requirements
- Python 3.6+
- OpenAI API key
- Internet connection (for web tools)
🤝 Contributing
Contributions are always welcome! Here's how you can help:
- Fork the repository
- Create a new branch (
git checkout -b feature/improvement) - Make changes
- Commit (
git commit -am 'Add new feature') - Push (
git push origin feature/improvement) - Open a Pull Request
📝 License
This project is MIT licensed - see the LICENSE file for details.
👥 Author
Ranit Bhowmick
- Email: bhowmickranitking@duck.com
- GitHub: @Kawai-Senpai
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ultragpt-1.0.0.tar.gz.
File metadata
- Download URL: ultragpt-1.0.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
934f48e3e6b86fddc4c938942255490d013ce96b491655a935bb61210c43efeb
|
|
| MD5 |
fb504fbc4655551d4a0c2c17ef5f4179
|
|
| BLAKE2b-256 |
1d160eeb37cde201f3cfdf23fa781edecd70f146cd93f177b9abf4edc2254978
|
File details
Details for the file ultragpt-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ultragpt-1.0.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
688703582f4d493bff426a39f29565b657164f1f87de895c0c43d6809e5e8a97
|
|
| MD5 |
ca629755296bf633e5907b47edf9e8f2
|
|
| BLAKE2b-256 |
b192e3e4db889e77dcd62bcd1be22336a5595f4c7660729699e7f410f9439896
|