Skip to main content

A Dynamic-Learning Model (DLM) chatbot with memory and compute reasoning modes.

Project description

Python SQLite HuggingFace Transformers

DLM Logo

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, geometric, 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:
      • 'learn' = Enables training using the memory model. The bot can be updated with new information
      • 'apply' = The bot automatically switches between its "compute" and "memory" model depending on the query asked
    • Empty SQL Database for training the bot with queries and for the memory model
  • 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.0 is required to use this bot in your program.

('learn' mode [training queries])

from dlm import DLM

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

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

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

from dlm import DLM

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

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

# or

commercial_bot.ask("Tell me the result for the following: 5 * 5 * 5 + 5 / 5", True)

HIGH-LEVEL PIPELINE VISUAL:

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-4.0.1.tar.gz (29.0 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-4.0.1-py3-none-any.whl (28.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dynamic_learning_model-4.0.1.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for dynamic_learning_model-4.0.1.tar.gz
Algorithm Hash digest
SHA256 9eff7875c5d89f5ab6242dda71c5f4fc5664cce663e051c0aa2dc504bc312326
MD5 0654e86e24e8ec9873aedc9a88aed5d1
BLAKE2b-256 8c1d3b91b0823da3db70de2dadcffac55b53bf3e9b0998ca5c452deaae85527c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dynamic_learning_model-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 add2748a435294d940719749d3825aca49fb1c0e148f80af38368e6cd57b2139
MD5 b4b8c7a4ce8ce88f55f868a4aa7abf13
BLAKE2b-256 ba21513a53e80af1b243c480d84952b1ed2e9ea47ea638254a9c1f630d11a018

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