Skip to main content

Neuralite

A Streamlined Python Framework for Rapidly Building and Deploying Machine Learning-Based Conversational Agents

Build, deploy, and scale your AI projects with Neuralite! Whether you're a seasoned AI developer or just starting out, Neuralite offers a simple and efficient way to implement AI features into your software.

Getting Started 🚀

To get started, install Neuralite with pip:

pip install Neuralite

Basic Chatbot 🤖

Creating a basic chatbot is simple:

from neuralite.interpreter import ai # Imports framework



assistant = ai('dataset.json') # Loads dataset



cycle_end = False # Starts the AI cycle



while not cycle_end: # Main cycle

    message = input("Enter a message: ") # Prompts user with message

    if message.lower() == "stop": # Exit with 'stop'

        cycle_end = True # Ends cycle

    else:

        print(assistant.process_input(message)) # Prints the response

Customizable Training Epochs 🔄

Train your AI model with a customizable number of epochs. The higher the epochs, the more refined your model will be.

from neuralite.interpreter import ai # Imports framework



# Initialize the AI model with 200 epochs

assistant = ai('dataset.json', epochs=200)



# Continue with your chatbot as usual

Compiling Your Model 📦

To make your dataset unreadable, load faster, and to package it into a neat file.

from neuralite.interpreter import ai # Imports framework



assistant = ai('dataset.json') # Loads dataset



assistant.compile('model.nlite') # Packages dataset to 'model.nlite'

Loading a Compiled Model 🔓

To load a precompiled model.

from neuralite.interpreter import ai # Imports framework



assistant = ai.compiled('model.nlite') # Loads the compiled model



cycle_end = False # Starts the AI cycle



while not cycle_end: # Main cycle

    message = input("Enter a message: ") # Prompts user with message

    if message.lower() == "stop": # Exit with 'stop'

        cycle_end = True # Ends cycle

    else:

        print(assistant.process_input(message)) # Prints the response

Example Conversational Dataset 💬

{

  "greeting": ["Hi", "Hello", "Hey there"],

  "greeting_responses": ["Hello!", "Hi, how can I help?", "Hey! What's up?"],

  "farewell": ["Goodbye", "See you", "Ciao"],

  "farewell_responses": ["Goodbye!", "See you soon!", "Take care!"],

  "how_are_you": ["How are you?", "How's it going?", "What's up?"],

  "how_are_you_responses": ["I'm good, thank you!", "I'm doing well. How about you?", "Not much, what about you?"],

  "compliment": ["You're great!", "You're amazing!", "You're awesome!"],

  "compliment_responses": ["Thank you! You're pretty awesome too.", "Thanks! You're great as well!", "Thanks! That means a lot."],

  "name": ["What's your name?", "Who are you?", "Tell me your name."],

  "name_responses": ["I'm Neuralite, your AI assistant.", "Call me Neuralite.", "I'm Neuralite! Nice to meet you."],

  "jokes": ["Tell me a joke.", "Do you know any jokes?", "Make me laugh."],

  "jokes_responses": ["Why did the scarecrow win an award? Because he was outstanding in his field!", "I told my computer I needed a break. Now it won't stop sending me Kit-Kats.", "Why did the math book look sad? Because it had too many problems."]

}

Release files for neuralite 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neuralite 0.0.3
File Size Uploaded
neuralite-0.0.3.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for neuralite 0.0.3
File Interpreter ABI Platform
neuralite-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size:8.0 kB

Release files / neuralite-0.0.3.tar.gz

Download URL neuralite-0.0.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c60d5bba88a9e1fef6c5a8a2bb2802baf9a0e762599d2d3b2fc4048014e1d960
BLAKE2b-256 checksum
How to use checksums
72d0d5f1f2c54f9b575b32553992f41ac0936a2b8701ad549cabf7dab05424b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / neuralite-0.0.3-py3-none-any.whl

Download URL neuralite-0.0.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a001356b830700cb3b4d6e5c27bdd5bde00bdfd8afa4af54b2784f29cba103a
BLAKE2b-256 checksum
How to use checksums
8c1d1d287be4fdb736a7a0fcabf72ed577be2be7382577986dcb18076713b503
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page