Skip to main content

A streamlined Python framework for rapidly building and deploying machine learning-based AIs.

Project description

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."]

}

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

neuralite-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

neuralite-0.0.3-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file neuralite-0.0.3.tar.gz.

File metadata

  • Download URL: neuralite-0.0.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for neuralite-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c60d5bba88a9e1fef6c5a8a2bb2802baf9a0e762599d2d3b2fc4048014e1d960
MD5 a8c73f24428de152c5988f943830fe52
BLAKE2b-256 72d0d5f1f2c54f9b575b32553992f41ac0936a2b8701ad549cabf7dab05424b5

See more details on using hashes here.

File details

Details for the file neuralite-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: neuralite-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for neuralite-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0a001356b830700cb3b4d6e5c27bdd5bde00bdfd8afa4af54b2784f29cba103a
MD5 2dc5ed75b2580201e4c4e05f6fed40cb
BLAKE2b-256 8c1d1d287be4fdb736a7a0fcabf72ed577be2be7382577986dcb18076713b503

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