Skip to main content

Comprehensive AI Framework with 50+ LLM Providers, Advanced Agents, Chains, Memory, RAG, and 100+ Tools

Project description

NeuralNode v3.1.0

NeuralNode is a Python AI framework focused on:

  • real cloud providers that are implemented
  • local model execution with Transformers, Ollama, llama.cpp, and Horus
  • agents, memory, and RAG
  • Replica TTS and speech recognition
  • Telegram integration

Install

pip install neuralnode
pip install "neuralnode[all]"

Useful extras:

pip install "neuralnode[horus]"
pip install "neuralnode[telegram]"
pip install "neuralnode[replica]"
pip install "neuralnode[speech]"
pip install "neuralnode[turboquant]"

Quick Start

import neuralnode as nn

ai = nn.NeuralNode(
    provider="groq",
    model="llama-3.1-70b-versatile",
    api_key="YOUR_GROQ_API_KEY",
)

print(ai.chat("Hello from NeuralNode"))

Horus

All Horus models use:

  • unified chat template: horus_unified
  • unified context window: 8192

Horus downloads are public-only. Private or gated Hugging Face repositories are not supported.

import neuralnode as nn

model = nn.HorusModel(
    model_id="tokenaii/horus/Horus-1.0-4B",
    turboquant=True,
    turboquant_bits=4,
).load()

response = model.chat([
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "Explain Horus briefly."},
])

print(response.content)

Available Horus model IDs

from neuralnode import HorusModel

print(HorusModel.list_available_models())

Supported IDs currently include:

  • tokenaii/horus
  • tokenaii/horus/Horus-1.0-4B
  • tokenaii/Horus-1.0-4B-GGUF/Horus-1.0-4B-Q4_K_M.gguf
  • tokenaii/Horus-1.0-4B-GGUF/Horus-1.0-4B-Q5_K_M.gguf
  • tokenaii/Horus-1.0-4B-GGUF/Horus-1.0-4B-Q6_K.gguf
  • tokenaii/Horus-1.0-4B-GGUF/Horus-1.0-4B-Q8_0.gguf
  • tokenaii/Horus-1.0-4B-GGUF/Horus-1.0-4B-F16.gguf
  • tokenaii/Horus-Lens-1.0

Horus Lens text-to-image

import neuralnode as nn

model = nn.HorusLensModel("tokenaii/Horus-Lens-1.0").load()
model.generate_image(
    "A detailed cinematic image of an ancient Egyptian AI lab, golden light",
    output_path="outputs/horus_lens.png",
    seed=42,
)

Replica TTS

Replica exposes 20 curated edge_tts voices through custom voice IDs.

import neuralnode as nn

print(nn.replica_voice_list())

tts = nn.ReplicaTTS(voice_id="replic-salma-language{ar-eg}")
tts.save_to_file("مرحبا من نيورال نود", "reply.mp3")

Voice mapping docs:

Horus + Replica

import neuralnode as nn

model = nn.HorusModel(
    model_id="tokenaii/horus/Horus-1.0-4B",
    enable_tts=True,
    tts_voice_id="replic-salma-language{ar-eg}",
).load()

result = model.chat_and_speak(
    [{"role": "user", "content": "قل لي جملة ترحيب قصيرة"}],
    output_file="horus_reply.mp3",
)

print(result["response"].content)
print(result["audio_path"])

Telegram

Use a BotFather token to connect an agent to Telegram.

import neuralnode as nn

ai = nn.NeuralNode(provider="horus", model="tokenaii/horus/Horus-1.0-4B")
agent = ai.agent(agent_type="simple", thinking=False)

bot = nn.TelegramBot(
    token="YOUR_BOTFATHER_TOKEN",
    agent=agent,
    config=nn.TelegramBotConfig(
        token="YOUR_BOTFATHER_TOKEN",
        enable_voice=True,
        enable_documents=True,
        reply_mode="both",  # text | voice | both
        voice_reply_voice_id="replic-aria-language{en-us}",
    ),
)

bot.start()

Telegram now supports:

  • text chat
  • voice transcription
  • optional Replica voice replies
  • document download and analysis

RAG

import neuralnode as nn

ai = nn.NeuralNode(provider="ollama", model="llama3.2")
rag = ai.rag(store="memory")
rag.add_documents(["notes.txt", "report.pdf"])

print(rag.query("Summarize the key findings"))

If the current LLM does not support embeddings, RAG automatically tries:

  1. a dedicated embedding provider
  2. sentence-transformers
  3. lexical fallback embeddings

Supported Provider Surface

Only implemented providers are exposed through the public provider registry.

Cloud chat providers:

  • anthropic
  • google
  • cohere
  • mistral
  • groq
  • deepseek
  • perplexity
  • ai21
  • together
  • fireworks
  • bedrock
  • vertexai

Local providers:

  • ollama
  • llamacpp
  • transformers
  • llamafile
  • koboldcpp
  • textgenwebui
  • exllama
  • autogptq
  • autoawq
  • vllm
  • tgi
  • deepspeed
  • rayserve
  • mlflow
  • bentoml
  • triton
  • mlx
  • horus

TurboQuant

TurboQuant is integrated into:

  • HorusModel(..., turboquant=True, turboquant_bits=4)
  • create_provider("transformers", turboquant=True, turboquant_bits=4, ...)

If the turboquant package is not installed or the backend cannot use it, NeuralNode falls back to normal generation automatically.

Notes

  • OpenAI is intentionally blocked in NeuralNode.
  • GGUF Horus models require llama-cpp-python.
  • Horus downloads from Hugging Face require huggingface_hub.

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

neuralnode-2.1.8.tar.gz (202.0 kB view details)

Uploaded Source

Built Distribution

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

neuralnode-2.1.8-py3-none-any.whl (206.5 kB view details)

Uploaded Python 3

File details

Details for the file neuralnode-2.1.8.tar.gz.

File metadata

  • Download URL: neuralnode-2.1.8.tar.gz
  • Upload date:
  • Size: 202.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for neuralnode-2.1.8.tar.gz
Algorithm Hash digest
SHA256 16452b8851792f5c6fbe696d42d721ab2ed51cf0dde341721f709c7ec60c8e5e
MD5 f2ed7bf52bbc90ce72669e15d00c31fd
BLAKE2b-256 8c03a0d716ef5a17c4d826920beb306ec205cc7f467eec263e973bdaf1e6fe9c

See more details on using hashes here.

File details

Details for the file neuralnode-2.1.8-py3-none-any.whl.

File metadata

  • Download URL: neuralnode-2.1.8-py3-none-any.whl
  • Upload date:
  • Size: 206.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for neuralnode-2.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7211b4f1acd951b096b5e4f85ec9120eb83abb163ff2a21139cd0215512e158f
MD5 5f6d4f2c0f429bafa4a78e24ca5f373b
BLAKE2b-256 167d88187207dd1bc9f61a21e1841028eae2e0042d6b12edafaff1cb2de63d7a

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