Skip to main content

A Dynamic Learning Model for processing NLP queries using hybrid AI and reasoning.

Project description

Python SQLite

Dynamic Learning Model

ABOUT:

The Dynamic Learning Model (DLM) is a hybrid AI system designed to learn, adapt, and intelligently respond to user queries. It combines natural language understanding with structured reasoning, continually improving as it is trained.

Key capabilities include:

  • FAQ Handling: Learns and responds to frequently asked questions based on the knowledge it has been trained on.

  • Chain-of-Thought (CoT) Reasoning: Performs clear, step-by-step logic to solve non-ambiguous arithmetic and unit conversion problems.

  • Custom Knowledge Integration: DLM is fully extensible. You can initialize it with an empty SQL database and train it with your domain-specific knowledge.

Whether you're building a student support bot, a domain-specific assistant, or a computation system, DLM offers a flexible foundation to power your intelligent applications

REQUIRED PARAMETERS:

  • The constructor requires passing in two parameters:
    • Bot Mode: 't' = training, 'c' = commercial, 'e' = experimental
    • Empty SQL Database for training the bot with queries
  • The ask() method also requires passing in two parameters:
    • Query: "What is the definition of FAFSA" (as an example)
    • Display Thought: "True" to allow the bot's Chain of Thought to be displayed, or else "False"

GET STARTED:

  • To install, run:
pip install dynamic-learning-model
  • Python 3.12 or higher is required to use this bot in your program

(Experimental 'e' mode [computation queries])

from dlm import DLM

computation_bot = DLM("e", "college_knowledge.db")

computation_bot.ask("Compute the following: 5 * 5 * 5 + 5 / 5", True)

(Training 't' mode [training queries])

  • You can find the training password in the __trainingPwd variable defined within the DLM.py file
from dlm import DLM

training_bot = DLM("t", "college_knowledge.db")

training_bot.ask("What is FAFSA in college?", True)

(Commercial 'c' mode [deployment/production use after training])

from dlm import DLM

commercial_bot = DLM("c", "college_knowledge.db")

commercial_bot.ask("What is the difference between FAFSA and CADAA in California?", False)

HIGH-LEVEL PIPELINE VISUALS:

image

image

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

dynamic_learning_model-1.2.6.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

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

dynamic_learning_model-1.2.6-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file dynamic_learning_model-1.2.6.tar.gz.

File metadata

  • Download URL: dynamic_learning_model-1.2.6.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for dynamic_learning_model-1.2.6.tar.gz
Algorithm Hash digest
SHA256 fa8ff32314d74ff26112a5ee0e5db022953bccefcd730f739841c0c34d072b88
MD5 33774a7462e427c2a3c1cc0bbeb87904
BLAKE2b-256 3879f735a77611d451e4c1f2a643c7d8244f56d4b3cc7ca790ed18c55abf2d8a

See more details on using hashes here.

File details

Details for the file dynamic_learning_model-1.2.6-py3-none-any.whl.

File metadata

File hashes

Hashes for dynamic_learning_model-1.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 31c96258efadd7949c4d943558993bf859bba35a0cf34e38ed94241d7a714d8d
MD5 645ae43dcb9944b6911fb3ba2f6996a6
BLAKE2b-256 a96cbf879645a6ad4a944c3529187b23df1f9d34165d1cf71c3fb1e589515096

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