Skip to main content

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

  1. Task Analysis
  2. Step Generation
  3. Step-by-Step Execution
  4. Progress Verification
  5. Final Compilation

Reasoning Pipeline

  1. Initial Analysis
  2. Multi-iteration Thinking
  3. Thought Development
  4. 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:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/improvement)
  3. Make changes
  4. Commit (git commit -am 'Add new feature')
  5. Push (git push origin feature/improvement)
  6. Open a Pull Request

📝 License

This project is MIT licensed - see the LICENSE file for details.

👥 Author

Ranit Bhowmick


Made with ❤️ by Ranit Bhowmick

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

ultragpt-0.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

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

ultragpt-0.1.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ultragpt-0.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for ultragpt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 134da23185c7188d0fac53f24022480b4e976f4c6a4f29120139b6c47e765702
MD5 1b4f2ca2a3dfc4f5a579e3eba9d6fc58
BLAKE2b-256 2cdaf84dd6d7e00602482766665937dc58dd76bb5adfec55410eb5309dd49b7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ultragpt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for ultragpt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d99856322530fa50c1394a233f4d45beae4cec0cc1d43bce493ca956cdb3f65a
MD5 a0a0e09066adefeddcf81dae9f46b6db
BLAKE2b-256 8ce5c4a9a5fc7c3fe80c171a69860211ee7be3f10996815e5dd7f66146a90954

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