Skip to main content

Advanced AI assistant with voice, vision, and robotics capabilities

Project description

Tektra AI Assistant

Python Version License PyPI Version

Tektra AI Assistant is an advanced AI assistant with voice, vision, and robotics capabilities. It features persistent conversation management, real-time chat, streaming responses, and a beautiful web interface.

✨ Features

🧠 Advanced AI Integration

  • Multiple Model Support: Phi-3, GPT, Llama, and more
  • Streaming Responses: Real-time token-by-token generation
  • Context Awareness: Conversation history and memory management
  • Model Management: Load, unload, and switch between models

💬 Rich Chat Interface

  • Persistent Conversations: Full conversation history with database storage
  • Real-time Chat: WebSocket-based streaming chat
  • Conversation Management: Create, search, organize, and delete conversations
  • Message Actions: Copy, regenerate, and manage individual messages
  • Beautiful UI: Modern, responsive web interface

🎤 Multimodal Capabilities

  • Voice Input: Speech-to-text with real-time transcription
  • Voice Output: Text-to-speech with natural voices
  • Vision: Image analysis and computer vision
  • Camera Integration: Real-time video processing

🤖 Robotics & Automation

  • Robot Control: Command and control robotic systems
  • Avatar System: 3D avatar with expressions and gestures
  • Real-time Communication: WebSocket-based robot communication
  • Safety Features: Emergency stop and safety monitoring

🚀 Quick Start

Installation

Install Tektra AI Assistant with pip:

# Basic installation
pip install tektra-ai

# With all optional features
pip install tektra-ai[all]

# With specific features
pip install tektra-ai[ml,audio,vision]

Setup and First Run

  1. Initial Setup (first time only):

    tektra setup
    
  2. Start the Assistant:

    tektra start
    
  3. Open Your Browser: The web interface will automatically open at http://localhost:8000

That's it! 🎉

📖 Usage

Command Line Interface

# Start the server (with options)
tektra start --host 0.0.0.0 --port 8000 --browser

# Setup for first use
tektra setup

# Show system information
tektra info

# Show version
tektra version

# Get help
tektra --help

Web Interface

Once started, you can:

  1. Chat with AI: Start conversations with intelligent responses
  2. Manage Conversations: Browse, search, and organize your chat history
  3. Voice Interaction: Use voice input and output
  4. Control Systems: Manage robots, avatars, and connected devices

🔧 Configuration

Environment Variables

Create a .env file in your working directory:

# Database
DATABASE_URL=sqlite:///./tektra.db

# Server
HOST=0.0.0.0
PORT=8000
DEBUG=false

# AI Models
MODEL_CACHE_DIR=./models
MAX_MODEL_MEMORY_GB=8

# Audio
AUDIO_SAMPLE_RATE=16000
MAX_AUDIO_DURATION=30

# API Keys (optional)
OPENAI_API_KEY=your_openai_key
ANTHROPIC_API_KEY=your_anthropic_key

🏗️ Architecture

Tektra AI Assistant is built with a modern, modular architecture:

tektra/
├── app/                    # Main application
│   ├── routers/           # API endpoints
│   ├── services/          # Business logic
│   ├── models/            # Database models
│   ├── database.py        # Database management
│   └── config.py          # Configuration
├── frontend/              # Web interface (React/Next.js)
├── cli.py                 # Command-line interface
└── server.py              # Server management

Technology Stack

  • Backend: FastAPI, SQLAlchemy, WebSockets, Python 3.9+
  • Frontend: Next.js, React, TypeScript, Tailwind CSS
  • Database: SQLite (default), PostgreSQL (optional)
  • AI/ML: Transformers, PyTorch, MLX (Apple Silicon)
  • Audio: PyAudio, LibROSA, SoundFile
  • Vision: OpenCV, MediaPipe

📦 Installation Options

Basic Installation

pip install tektra-ai

With Machine Learning

pip install tektra-ai[ml]

With Audio Support

pip install tektra-ai[audio]

With Vision Support

pip install tektra-ai[vision]

With Robotics Support

pip install tektra-ai[robotics]

Everything Included

pip install tektra-ai[all]

Development Installation

git clone https://github.com/tektra/tektra-ai.git
cd tektra-ai
pip install -e .[dev,all]

🛠️ Development

Setting Up Development Environment

# Clone the repository
git clone https://github.com/tektra/tektra-ai.git
cd tektra-ai

# Install in development mode
pip install -e .[dev,all]

# Set up pre-commit hooks
pre-commit install

# Run tests
pytest

# Start development server
tektra start --reload --debug

🐛 Troubleshooting

Common Issues

Installation Problems:

# If you get permission errors
pip install --user tektra-ai

# If you have dependency conflicts
pip install tektra-ai --no-deps
pip install -r requirements.txt

Audio Issues:

# On macOS
brew install portaudio
pip install pyaudio

# On Ubuntu/Debian
sudo apt-get install portaudio19-dev
pip install pyaudio

Database Issues:

# Reset database
rm tektra.db
tektra setup

📄 License

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


Made with ❤️ by the Tektra Team

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

tektra-0.1.0.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

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

tektra-0.1.0-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tektra-0.1.0.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tektra-0.1.0.tar.gz
Algorithm Hash digest
SHA256 addb6f335320ca33ea1dda7344d8e7d682bf3347b424a20d6dbc80c9c61ca267
MD5 b27a14ba8e1c8cf7505e9638ce72a248
BLAKE2b-256 5d6375851d2d0242c0c2ff69fb83903730e433e8b613e3ead33f8241536d9a31

See more details on using hashes here.

Provenance

The following attestation bundles were made for tektra-0.1.0.tar.gz:

Publisher: pypi.yml on dirvine/tektra

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

File details

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

File metadata

  • Download URL: tektra-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tektra-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d1932d2369507f71c238127f6e146646da874b0696a9684a0cf7dc51146b85a5
MD5 6265da52b153287d85991b206b0cedbe
BLAKE2b-256 ee15b3e165f5df89814fd9c1f49b05e555f1902a05c29450978ebcde8e051161

See more details on using hashes here.

Provenance

The following attestation bundles were made for tektra-0.1.0-py3-none-any.whl:

Publisher: pypi.yml on dirvine/tektra

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