Skip to main content

Smart Layer for Context Augmented Language Models (CALM) - Convert any LLM into CALM

Project description

TOXO - Smart Layer for Context Augmented Language Models (CALM)

PyPI version Downloads Python versions

🧠 World's First Comprehensive No-Code LLM Training Platform

Transform any black-box LLM into a domain expert without coding. Train sophisticated AI models through our web interface and deploy them instantly as .toxo files.

🚀 Quick Start

Installation

pip install toxo

Usage

from toxo import ToxoLayer

# Load your trained model (created on toxotune.com)
layer = ToxoLayer.load("your_expert_model.toxo")

# Set your API key (Gemini/OpenAI)
layer.setup_api_key("your_api_key_here")

# Use your trained AI expert
response = layer.query("Your question here")
print(response)

Async Usage

import asyncio
from toxo import ToxoLayer

async def main():
    layer = ToxoLayer.load("your_expert_model.toxo")
    layer.setup_api_key("your_api_key_here")
    
    response = await layer.query_async("Your question here")
    print(response)

asyncio.run(main())

🎯 Key Features

  • 🎨 No-Code Training: Create AI experts through our web interface
  • ⚡ Instant Deployment: Download and use .toxo files immediately
  • 🧠 Domain Expertise: Specialized AI for any field or industry
  • 🔄 Continuous Learning: Models improve with feedback
  • 📊 Advanced Analytics: Performance monitoring and insights
  • 🤖 Multi-Agent Systems: Collaborative AI workflows
  • 🔍 Smart Retrieval: Advanced RAG and context processing
  • 🎨 Multi-Modal: Text, images, audio, video support

📖 Documentation

Basic Methods

ToxoLayer.load(path)

Load a .toxo model file.

layer = ToxoLayer.load("path/to/your_model.toxo")

layer.setup_api_key(api_key)

Configure your LLM API key (Gemini, OpenAI, etc.).

layer.setup_api_key("your_api_key_here")

layer.query(question, context=None)

Synchronous query to your trained AI expert.

response = layer.query("What is quantum computing?")
response = layer.query("Analyze this data", context={"data": "..."})

layer.query_async(question, context=None)

Asynchronous query for better performance.

response = await layer.query_async("Your question here")

Advanced Methods

layer.get_info()

Get information about your trained model.

info = layer.get_info()
print(f"Domain: {info['domain']}")
print(f"Trained: {info['is_trained']}")
print(f"Performance: {info['metrics']}")

layer.add_feedback(question, response, rating)

Improve your model with feedback.

layer.add_feedback("Question", "Response", 8.5)

layer.get_capabilities()

Discover what your model can do.

capabilities = layer.get_capabilities()
print(capabilities)

🏗️ Creating Models

Models are created on our web platform at toxotune.com:

  1. 🎯 Choose Domain: Select your area of expertise
  2. 📚 Add Training Data: Upload documents, examples, or data
  3. 🏋️ Train Model: Our platform handles the complex training
  4. 📦 Download: Get your .toxo file ready for use
  5. 🚀 Deploy: Use anywhere with this Python package

🔧 Advanced Usage

Context-Aware Queries

# Provide context for better responses
context = {
    "user_role": "data_scientist",
    "project": "customer_analysis",
    "priority": "high"
}
response = layer.query("How should I approach this?", context=context)

Batch Processing

questions = [
    "What is machine learning?",
    "How does neural networks work?",
    "Explain deep learning"
]

responses = []
for question in questions:
    response = await layer.query_async(question)
    responses.append(response)

Performance Monitoring

# Get performance metrics
metrics = layer.get_performance_metrics()
print(f"Average response time: {metrics['avg_response_time']}")
print(f"Accuracy score: {metrics['accuracy']}")

🛠️ Requirements

  • Python 3.8+
  • Internet connection (for LLM API calls)
  • API key for supported LLM providers (Gemini, OpenAI, etc.)

🔐 Supported LLM Providers

  • Google Gemini (Recommended)
  • OpenAI GPT (Coming Soon)
  • Anthropic Claude (Coming Soon)
  • Local Models (Coming Soon)

📊 Model Types

Create specialized AI experts for any domain:

  • 📈 Business Intelligence: Data analysis, reporting, insights
  • 🔬 Research Assistant: Literature review, hypothesis generation
  • 💻 Code Expert: Programming help, code review, debugging
  • 📚 Educational Tutor: Personalized learning and explanations
  • 🎨 Creative Writer: Content creation, storytelling, copywriting
  • ⚕️ Healthcare Assistant: Medical research, patient education
  • ⚖️ Legal Advisor: Contract analysis, legal research
  • 🏦 Financial Analyst: Market analysis, risk assessment
  • And many more...

🆘 Support

📄 License

Proprietary License - See LICENSE file for details.

🚀 Get Started

  1. Visit toxotune.com
  2. Create your first AI expert
  3. Download your .toxo file
  4. Install this package: pip install toxo
  5. Start using your trained AI!

TOXO - Democratizing AI Training for Everyone 🧠✨

toxo_public_python_package

toxo_public_python_package

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

toxo-1.0.6.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

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

toxo-1.0.6-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file toxo-1.0.6.tar.gz.

File metadata

  • Download URL: toxo-1.0.6.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for toxo-1.0.6.tar.gz
Algorithm Hash digest
SHA256 11568595d592deeda9374eb0a562f262d3d4af73371e6262b920d77884fc2b00
MD5 c405bd1855a99f8549a5e9e55be5aa34
BLAKE2b-256 b2226555f9b6ab4570d1b5890ce0befae23274197994c5dc59dfe3d9665f8e4b

See more details on using hashes here.

Provenance

The following attestation bundles were made for toxo-1.0.6.tar.gz:

Publisher: publish-to-pypi.yml on spiderdev27/toxo_public_python_package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file toxo-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: toxo-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for toxo-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d05453a67a55d17d8191090f8511d79cc015cf51b7725d85c1b53a6031637579
MD5 f61decb618012f7bb252a7d09f49fad5
BLAKE2b-256 0993e9a7eb36009c8a294f9b8eb6acc7db154890bf7d626ccbc35cc0f870f296

See more details on using hashes here.

Provenance

The following attestation bundles were made for toxo-1.0.6-py3-none-any.whl:

Publisher: publish-to-pypi.yml on spiderdev27/toxo_public_python_package

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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