Skip to content
koubik-designPublic

About

AI

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Null AI - Your Intelligent Assistant

Welcome to Null AI, a comprehensive Python-based artificial intelligence assistant designed to help with IT support, web analysis, and document generation.

Features

🎓 IT Assistance

  • Programming help in multiple languages (Python, Java, JavaScript, C++, and more)
  • Code debugging assistance
  • Best practices and tips
  • Code review guidance

🌐 Web Analysis

  • Web search capabilities
  • Content analysis
  • Website summarization
  • Information gathering

📄 Document Generation

  • PDF creation
  • Word document generation
  • PowerPoint presentations
  • Text files
  • JSON and CSV exports

Project Structure

Null_AI/
├── null_ai/                    # Main package
│   ├── core/                   # Core AI engine
│   │   ├── engine.py           # Main AI engine
│   │   └── processor.py        # Query processor
│   ├── modules/                # Feature modules
│   │   ├── it_help.py          # IT assistance
│   │   ├── web_analysis.py     # Web analysis
│   │   └── document_generator.py # Document generation
│   ├── utils/                  # Utilities
│   │   └── logger.py           # Logging
│   ├── config/                 # Configuration
│   │   └── settings.py         # Settings management
│   └── __init__.py
├── examples/                   # Example usage
│   └── basic_usage.py
├── tests/                      # Unit tests
│   └── test_null_ai.py
├── main.py                     # Entry point
├── requirements.txt            # Dependencies
├── config.json                 # Configuration file
└── README.md                   # This file

Installation

  1. Clone or download the repository

    cd Scratch_AI
  2. Install dependencies

    pip install -r requirements.txt
  3. Run Null AI

    python main.py

Usage

Interactive Mode

Start the interactive mode:

python main.py

Then type your queries:

Null AI > Help me with Python programming
Null AI > Search for machine learning tutorials
Null AI > Generate a PDF report
Null AI > exit

Programmatic Usage

from null_ai import NullAI

# Initialize Null AI
null = NullAI()

# Ask for IT help
response = null.query("Help me debug this Python error", query_type="it_help")
print(response['response'])

# Perform web analysis
response = null.query("Search for Python best practices", query_type="web_analysis")
print(response['response'])

# Generate documents
response = null.query("Create a PDF report", query_type="document")
print(response['response'])

# View conversation history
history = null.get_history()
for entry in history:
    print(f"User: {entry['user']}")
    print(f"Response: {entry['response']}\n")

Running Examples

python examples/basic_usage.py

Running Tests

python -m pytest tests/
# or
python -m unittest tests.test_null_ai

API Reference

NullAI Class

Main AI engine class that coordinates all modules.

Methods

  • query(user_input: str, query_type: str = "general") -> Dict: Process a user query
  • get_info() -> Dict: Get information about Null AI
  • get_history(limit: int = None) -> List: Get conversation history
  • clear_history(): Clear conversation history
  • list_capabilities() -> Dict: List all capabilities

Query Types

  • "general" - General queries (default)
  • "it_help" - Programming and IT assistance
  • "web_analysis" - Web search and analysis
  • "document" - Document generation

Configuration

Modify config.json to customize Null AI:

{
  "ai_name": "Null",
  "version": "1.0.0",
  "debug": false,
  "max_history": 1000,
  "supported_languages": ["python", "java", "javascript", ...],
  "document_formats": ["pdf", "word", "powerpoint", "txt", "json", "csv"]
}

Supported Languages

  • Python
  • Java
  • JavaScript
  • C++
  • C#
  • Go
  • Rust
  • Ruby
  • PHP

Document Formats

  • PDF (.pdf)
  • Word (.docx)
  • PowerPoint (.pptx)
  • Text (.txt)
  • JSON (.json)
  • CSV (.csv)

Future Enhancements

  • Integrate real web search APIs (Google, Bing)
  • Add machine learning capabilities
  • Support for natural language understanding
  • Voice input/output
  • Database integration
  • API server mode
  • GUI interface
  • Plugin system

License

CC-BY-NC-ND Licence, dont use for comercial uses, dont remix, allways name Author as Vojtech Koubik.

Support

For issues, questions, or suggestions, please open an issue on GitHub or contact the development team.

Changelog

Version 1.0.0

  • Initial release
  • IT assistance module
  • Web analysis module
  • Document generation module
  • Conversation history tracking
  • Comprehensive logging system

Null AI - Making AI accessible and useful for everyone.

About

AI

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages