dynamic-learning-model 4.0.2__tar.gz → 4.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Vignesh Thondikulam
3
+ Copyright (c) 2025-2026 Vignesh Thondikulam
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.4
2
+ Name: dynamic-learning-model
3
+ Version: 4.0.4
4
+ Summary: A Dynamic-Learning Model (DLM) chatbot with memory and compute reasoning modes.
5
+ Author-email: Vignesh Thondikulam <vignesh.tho2006@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/VigneshT24/Dynamic_Learning_Model
8
+ Project-URL: Repository, https://github.com/VigneshT24/Dynamic_Learning_Model
9
+ Requires-Python: >=3.12
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: spacy>=3.7
13
+ Requires-Dist: transformers>=4.30
14
+ Requires-Dist: torch>=2.0
15
+ Requires-Dist: better-profanity>=0.7
16
+ Requires-Dist: nltk>=3.8
17
+ Dynamic: license-file
18
+
19
+ <table>
20
+ <tr>
21
+ <td><img src="https://ik.imagekit.io/cqhzoyggfm/DLM%20Logo.png?updatedAt=1759635222204" width="90"></td>
22
+ <td><h1>Dynamic Learning Model</h1></td>
23
+ </tr>
24
+ </table>
25
+
26
+ [![PyPI version](https://img.shields.io/pypi/v/dynamic-learning-model.svg)](https://pypi.org/project/dynamic-learning-model/)
27
+ [![Python Version](https://img.shields.io/badge/python-3.12.0%2B-blue)](https://pypi.org/project/dynamic-learning-model/)
28
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
29
+
30
+ ## Overview
31
+
32
+ The Dynamic Learning Model (DLM) is a hybrid, domain-specific AI system designed to learn, adapt, and respond intelligently to user queries. It combines natural language understanding with structured reasoning, continually improving as it is trained.
33
+
34
+ **Key capabilities include:**
35
+
36
+ - **FAQ Handling** - Learns and responds to frequently asked questions based on the knowledge it has been trained on.
37
+ - **Chain-of-Thought (CoT) Reasoning** - Performs clear, step-by-step logic to solve non-ambiguous arithmetic, geometric, and unit conversion problems.
38
+ - **Custom Knowledge Integration** - DLM is fully extensible. You can initialize it with an empty SQL database and train it with your domain-specific knowledge.
39
+
40
+ 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.
41
+
42
+ ## Table of Contents
43
+
44
+ - [Installation](#installation)
45
+ - [Required Parameters](#required-parameters)
46
+ - [Usage](#usage)
47
+ - [Important Notices](#important-notices)
48
+ - [License](#license)
49
+ - [Disclaimer](#disclaimer)
50
+
51
+ ## Installation
52
+
53
+ ```bash
54
+ pip install dynamic-learning-model
55
+ ```
56
+
57
+ > **Requirements:** Python 3.12.0 or higher is required to use this bot in your program. All required dependencies are installed automatically with the package.
58
+
59
+ ## Required Parameters
60
+
61
+ The constructor requires passing in two parameters:
62
+
63
+ 1. **Bot Mode**
64
+ - `"learn"` - Enables training using the memory model. The bot can be updated with new information.
65
+ - `"apply"` - The bot automatically switches between its "compute" and "memory" models depending on the query asked.
66
+ 2. **Database Path** - An empty (or existing) SQLite database file used for training and as the bot's memory model.
67
+
68
+ The `ask()` method also requires two parameters:
69
+
70
+ 1. **Query** - e.g., `"What is the definition of FAFSA?"`
71
+ 2. **Display Thought** - `True` to display the bot's Chain-of-Thought reasoning, or `False` to suppress it.
72
+
73
+ ## Usage
74
+
75
+ **`"learn"` mode** (training queries):
76
+
77
+ ```python
78
+ from dlm import DLM
79
+
80
+ training_bot = DLM("learn", "college_knowledge.db")
81
+ training_bot.ask("What is FAFSA in college?", True)
82
+ ```
83
+
84
+ **`"apply"` mode** (deployment / production use after training):
85
+
86
+ ```python
87
+ from dlm import DLM
88
+
89
+ commercial_bot = DLM("apply", "college_knowledge.db")
90
+ commercial_bot.ask("What is the difference between FAFSA and CADAA in California?", False)
91
+
92
+ # or
93
+
94
+ commercial_bot.ask("Tell me the result for the following: 5 * 5 * 5 + 5 / 5", True)
95
+ ```
96
+
97
+ ### High-Level Pipeline
98
+
99
+ ![DLM Pipeline](https://github.com/user-attachments/assets/e61d3f5d-87ca-4c81-bcb4-c28a0df65300)
100
+
101
+ ## Important Notices
102
+
103
+ 1. **Training data quality matters.** DLM's accuracy in `"learn"` mode depends entirely on the consistency and clarity of the question/answer pairs it's trained with. Inconsistent category labeling or vague phrasing during training can produce inaccurate or corrupted responses later.
104
+ 2. **Database files are local and untracked.** DLM stores all trained knowledge in the SQLite file you provide. Back up this file regularly - there is no built-in cloud sync, versioning, or recovery mechanism.
105
+ 3. **Model loading behavior.** Underlying NLP and transformer models (spaCy, HuggingFace) are lazy-loaded and shared across instances. The first call in a session may take longer due to model loading; subsequent calls are significantly faster.
106
+ 4. **Compute mode limitations.** Chain-of-Thought computation is designed for clear, non-ambiguous arithmetic, geometric, and unit-conversion problems. Ambiguous or multi-interpretation queries may produce incorrect results - always verify outputs for critical use cases.
107
+
108
+ ## License
109
+
110
+ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
111
+
112
+ ## Disclaimer
113
+
114
+ Dynamic Learning Model (DLM) is provided **"as-is"**, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the author be liable for any claim, damages, or other liability arising from the use of this software.
115
+
116
+ DLM **may produce inaccurate, incomplete, or unexpected responses**, particularly for ambiguous queries or insufficiently trained knowledge bases. **Do not rely on DLM's output for decisions involving safety, legal, medical, or financial consequences without independent verification.**
117
+
118
+ All data provided to DLM (training queries, database contents) is processed and stored **locally** on the host machine. DLM does not transmit user data externally, except for any underlying third-party model downloads (e.g. HuggingFace, spaCy) required on first run, which are subject to those providers' own terms.
@@ -0,0 +1,100 @@
1
+ <table>
2
+ <tr>
3
+ <td><img src="https://ik.imagekit.io/cqhzoyggfm/DLM%20Logo.png?updatedAt=1759635222204" width="90"></td>
4
+ <td><h1>Dynamic Learning Model</h1></td>
5
+ </tr>
6
+ </table>
7
+
8
+ [![PyPI version](https://img.shields.io/pypi/v/dynamic-learning-model.svg)](https://pypi.org/project/dynamic-learning-model/)
9
+ [![Python Version](https://img.shields.io/badge/python-3.12.0%2B-blue)](https://pypi.org/project/dynamic-learning-model/)
10
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
11
+
12
+ ## Overview
13
+
14
+ The Dynamic Learning Model (DLM) is a hybrid, domain-specific AI system designed to learn, adapt, and respond intelligently to user queries. It combines natural language understanding with structured reasoning, continually improving as it is trained.
15
+
16
+ **Key capabilities include:**
17
+
18
+ - **FAQ Handling** - Learns and responds to frequently asked questions based on the knowledge it has been trained on.
19
+ - **Chain-of-Thought (CoT) Reasoning** - Performs clear, step-by-step logic to solve non-ambiguous arithmetic, geometric, and unit conversion problems.
20
+ - **Custom Knowledge Integration** - DLM is fully extensible. You can initialize it with an empty SQL database and train it with your domain-specific knowledge.
21
+
22
+ 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.
23
+
24
+ ## Table of Contents
25
+
26
+ - [Installation](#installation)
27
+ - [Required Parameters](#required-parameters)
28
+ - [Usage](#usage)
29
+ - [Important Notices](#important-notices)
30
+ - [License](#license)
31
+ - [Disclaimer](#disclaimer)
32
+
33
+ ## Installation
34
+
35
+ ```bash
36
+ pip install dynamic-learning-model
37
+ ```
38
+
39
+ > **Requirements:** Python 3.12.0 or higher is required to use this bot in your program. All required dependencies are installed automatically with the package.
40
+
41
+ ## Required Parameters
42
+
43
+ The constructor requires passing in two parameters:
44
+
45
+ 1. **Bot Mode**
46
+ - `"learn"` - Enables training using the memory model. The bot can be updated with new information.
47
+ - `"apply"` - The bot automatically switches between its "compute" and "memory" models depending on the query asked.
48
+ 2. **Database Path** - An empty (or existing) SQLite database file used for training and as the bot's memory model.
49
+
50
+ The `ask()` method also requires two parameters:
51
+
52
+ 1. **Query** - e.g., `"What is the definition of FAFSA?"`
53
+ 2. **Display Thought** - `True` to display the bot's Chain-of-Thought reasoning, or `False` to suppress it.
54
+
55
+ ## Usage
56
+
57
+ **`"learn"` mode** (training queries):
58
+
59
+ ```python
60
+ from dlm import DLM
61
+
62
+ training_bot = DLM("learn", "college_knowledge.db")
63
+ training_bot.ask("What is FAFSA in college?", True)
64
+ ```
65
+
66
+ **`"apply"` mode** (deployment / production use after training):
67
+
68
+ ```python
69
+ from dlm import DLM
70
+
71
+ commercial_bot = DLM("apply", "college_knowledge.db")
72
+ commercial_bot.ask("What is the difference between FAFSA and CADAA in California?", False)
73
+
74
+ # or
75
+
76
+ commercial_bot.ask("Tell me the result for the following: 5 * 5 * 5 + 5 / 5", True)
77
+ ```
78
+
79
+ ### High-Level Pipeline
80
+
81
+ ![DLM Pipeline](https://github.com/user-attachments/assets/e61d3f5d-87ca-4c81-bcb4-c28a0df65300)
82
+
83
+ ## Important Notices
84
+
85
+ 1. **Training data quality matters.** DLM's accuracy in `"learn"` mode depends entirely on the consistency and clarity of the question/answer pairs it's trained with. Inconsistent category labeling or vague phrasing during training can produce inaccurate or corrupted responses later.
86
+ 2. **Database files are local and untracked.** DLM stores all trained knowledge in the SQLite file you provide. Back up this file regularly - there is no built-in cloud sync, versioning, or recovery mechanism.
87
+ 3. **Model loading behavior.** Underlying NLP and transformer models (spaCy, HuggingFace) are lazy-loaded and shared across instances. The first call in a session may take longer due to model loading; subsequent calls are significantly faster.
88
+ 4. **Compute mode limitations.** Chain-of-Thought computation is designed for clear, non-ambiguous arithmetic, geometric, and unit-conversion problems. Ambiguous or multi-interpretation queries may produce incorrect results - always verify outputs for critical use cases.
89
+
90
+ ## License
91
+
92
+ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
93
+
94
+ ## Disclaimer
95
+
96
+ Dynamic Learning Model (DLM) is provided **"as-is"**, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the author be liable for any claim, damages, or other liability arising from the use of this software.
97
+
98
+ DLM **may produce inaccurate, incomplete, or unexpected responses**, particularly for ambiguous queries or insufficiently trained knowledge bases. **Do not rely on DLM's output for decisions involving safety, legal, medical, or financial consequences without independent verification.**
99
+
100
+ All data provided to DLM (training queries, database contents) is processed and stored **locally** on the host machine. DLM does not transmit user data externally, except for any underlying third-party model downloads (e.g. HuggingFace, spaCy) required on first run, which are subject to those providers' own terms.
@@ -1,9 +1,17 @@
1
+ import os
2
+ import warnings
3
+ os.environ["HF_HUB_DISABLE_TELEMETRY"] = "1"
4
+ os.environ["TOKENIZERS_PARALLELISM"] = "false"
5
+ warnings.filterwarnings("ignore")
1
6
  import difflib
2
7
  import string
3
8
  import random
4
9
  import spacy
5
10
  import time
6
11
  import sqlite3
12
+ from transformers.utils import logging as hf_logging
13
+ hf_logging.disable_progress_bar()
14
+ hf_logging.set_verbosity_error()
7
15
  from .DLM_Compute_Model import perform_advanced_CoT
8
16
  from .DLM_Memory_Model import get_category
9
17
  from .DLM_Memory_Model import get_specific_question
@@ -0,0 +1,118 @@
1
+ Metadata-Version: 2.4
2
+ Name: dynamic-learning-model
3
+ Version: 4.0.4
4
+ Summary: A Dynamic-Learning Model (DLM) chatbot with memory and compute reasoning modes.
5
+ Author-email: Vignesh Thondikulam <vignesh.tho2006@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/VigneshT24/Dynamic_Learning_Model
8
+ Project-URL: Repository, https://github.com/VigneshT24/Dynamic_Learning_Model
9
+ Requires-Python: >=3.12
10
+ Description-Content-Type: text/markdown
11
+ License-File: LICENSE
12
+ Requires-Dist: spacy>=3.7
13
+ Requires-Dist: transformers>=4.30
14
+ Requires-Dist: torch>=2.0
15
+ Requires-Dist: better-profanity>=0.7
16
+ Requires-Dist: nltk>=3.8
17
+ Dynamic: license-file
18
+
19
+ <table>
20
+ <tr>
21
+ <td><img src="https://ik.imagekit.io/cqhzoyggfm/DLM%20Logo.png?updatedAt=1759635222204" width="90"></td>
22
+ <td><h1>Dynamic Learning Model</h1></td>
23
+ </tr>
24
+ </table>
25
+
26
+ [![PyPI version](https://img.shields.io/pypi/v/dynamic-learning-model.svg)](https://pypi.org/project/dynamic-learning-model/)
27
+ [![Python Version](https://img.shields.io/badge/python-3.12.0%2B-blue)](https://pypi.org/project/dynamic-learning-model/)
28
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
29
+
30
+ ## Overview
31
+
32
+ The Dynamic Learning Model (DLM) is a hybrid, domain-specific AI system designed to learn, adapt, and respond intelligently to user queries. It combines natural language understanding with structured reasoning, continually improving as it is trained.
33
+
34
+ **Key capabilities include:**
35
+
36
+ - **FAQ Handling** - Learns and responds to frequently asked questions based on the knowledge it has been trained on.
37
+ - **Chain-of-Thought (CoT) Reasoning** - Performs clear, step-by-step logic to solve non-ambiguous arithmetic, geometric, and unit conversion problems.
38
+ - **Custom Knowledge Integration** - DLM is fully extensible. You can initialize it with an empty SQL database and train it with your domain-specific knowledge.
39
+
40
+ 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.
41
+
42
+ ## Table of Contents
43
+
44
+ - [Installation](#installation)
45
+ - [Required Parameters](#required-parameters)
46
+ - [Usage](#usage)
47
+ - [Important Notices](#important-notices)
48
+ - [License](#license)
49
+ - [Disclaimer](#disclaimer)
50
+
51
+ ## Installation
52
+
53
+ ```bash
54
+ pip install dynamic-learning-model
55
+ ```
56
+
57
+ > **Requirements:** Python 3.12.0 or higher is required to use this bot in your program. All required dependencies are installed automatically with the package.
58
+
59
+ ## Required Parameters
60
+
61
+ The constructor requires passing in two parameters:
62
+
63
+ 1. **Bot Mode**
64
+ - `"learn"` - Enables training using the memory model. The bot can be updated with new information.
65
+ - `"apply"` - The bot automatically switches between its "compute" and "memory" models depending on the query asked.
66
+ 2. **Database Path** - An empty (or existing) SQLite database file used for training and as the bot's memory model.
67
+
68
+ The `ask()` method also requires two parameters:
69
+
70
+ 1. **Query** - e.g., `"What is the definition of FAFSA?"`
71
+ 2. **Display Thought** - `True` to display the bot's Chain-of-Thought reasoning, or `False` to suppress it.
72
+
73
+ ## Usage
74
+
75
+ **`"learn"` mode** (training queries):
76
+
77
+ ```python
78
+ from dlm import DLM
79
+
80
+ training_bot = DLM("learn", "college_knowledge.db")
81
+ training_bot.ask("What is FAFSA in college?", True)
82
+ ```
83
+
84
+ **`"apply"` mode** (deployment / production use after training):
85
+
86
+ ```python
87
+ from dlm import DLM
88
+
89
+ commercial_bot = DLM("apply", "college_knowledge.db")
90
+ commercial_bot.ask("What is the difference between FAFSA and CADAA in California?", False)
91
+
92
+ # or
93
+
94
+ commercial_bot.ask("Tell me the result for the following: 5 * 5 * 5 + 5 / 5", True)
95
+ ```
96
+
97
+ ### High-Level Pipeline
98
+
99
+ ![DLM Pipeline](https://github.com/user-attachments/assets/e61d3f5d-87ca-4c81-bcb4-c28a0df65300)
100
+
101
+ ## Important Notices
102
+
103
+ 1. **Training data quality matters.** DLM's accuracy in `"learn"` mode depends entirely on the consistency and clarity of the question/answer pairs it's trained with. Inconsistent category labeling or vague phrasing during training can produce inaccurate or corrupted responses later.
104
+ 2. **Database files are local and untracked.** DLM stores all trained knowledge in the SQLite file you provide. Back up this file regularly - there is no built-in cloud sync, versioning, or recovery mechanism.
105
+ 3. **Model loading behavior.** Underlying NLP and transformer models (spaCy, HuggingFace) are lazy-loaded and shared across instances. The first call in a session may take longer due to model loading; subsequent calls are significantly faster.
106
+ 4. **Compute mode limitations.** Chain-of-Thought computation is designed for clear, non-ambiguous arithmetic, geometric, and unit-conversion problems. Ambiguous or multi-interpretation queries may produce incorrect results - always verify outputs for critical use cases.
107
+
108
+ ## License
109
+
110
+ This project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.
111
+
112
+ ## Disclaimer
113
+
114
+ Dynamic Learning Model (DLM) is provided **"as-is"**, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the author be liable for any claim, damages, or other liability arising from the use of this software.
115
+
116
+ DLM **may produce inaccurate, incomplete, or unexpected responses**, particularly for ambiguous queries or insufficiently trained knowledge bases. **Do not rely on DLM's output for decisions involving safety, legal, medical, or financial consequences without independent verification.**
117
+
118
+ All data provided to DLM (training queries, database contents) is processed and stored **locally** on the host machine. DLM does not transmit user data externally, except for any underlying third-party model downloads (e.g. HuggingFace, spaCy) required on first run, which are subject to those providers' own terms.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dynamic-learning-model"
7
- version = "4.0.2"
7
+ version = "4.0.4"
8
8
  description = "A Dynamic-Learning Model (DLM) chatbot with memory and compute reasoning modes."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -1,80 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: dynamic-learning-model
3
- Version: 4.0.2
4
- Summary: A Dynamic-Learning Model (DLM) chatbot with memory and compute reasoning modes.
5
- Author-email: Vignesh Thondikulam <vignesh.tho2006@gmail.com>
6
- License: MIT
7
- Project-URL: Homepage, https://github.com/VigneshT24/Dynamic_Learning_Model
8
- Project-URL: Repository, https://github.com/VigneshT24/Dynamic_Learning_Model
9
- Requires-Python: >=3.12
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Requires-Dist: spacy>=3.7
13
- Requires-Dist: transformers>=4.30
14
- Requires-Dist: torch>=2.0
15
- Requires-Dist: better-profanity>=0.7
16
- Requires-Dist: nltk>=3.8
17
- Dynamic: license-file
18
-
19
- <table>
20
- <tr>
21
- <td><img src="https://ik.imagekit.io/cqhzoyggfm/DLM%20Logo.png?updatedAt=1759635222204" width="90"></td>
22
- <td><h1>Dynamic Learning Model</h1></td>
23
- </tr>
24
- </table>
25
-
26
- 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.
27
-
28
- Key capabilities include:
29
-
30
- * FAQ Handling: Learns and responds to frequently asked questions based on the knowledge it has been trained on.
31
-
32
- * Chain-of-Thought (CoT) Reasoning: Performs clear, step-by-step logic to solve non-ambiguous arithmetic, geometric, and unit conversion problems.
33
-
34
- * Custom Knowledge Integration: DLM is fully extensible. You can initialize it with an empty SQL database and train it with your domain-specific knowledge.
35
-
36
- 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
37
-
38
- **REQUIRED PARAMETERS**:
39
- * The constructor requires passing in two parameters:
40
- - Bot Mode:
41
- - 'learn' = Enables training using the memory model. The bot can be updated with new information
42
- - 'apply' = The bot automatically switches between its "compute" and "memory" model depending on the query asked
43
- - Empty SQL Database for training the bot with queries and for the memory model
44
- * The ask() method also requires passing in two parameters:
45
- - Query: "What is the definition of FAFSA" (as an example)
46
- - Display Thought: "True" to allow the bot's Chain of Thought to be displayed, or else "False"
47
-
48
- **GET STARTED**:
49
- * To install, run:
50
- ```bash
51
- pip install dynamic-learning-model
52
- ```
53
- * ***Python 3.12.0 or higher is required to use this bot in your program.***
54
-
55
- ('learn' mode [training queries])
56
- ```python
57
- from dlm import DLM
58
-
59
- training_bot = DLM("learn", "college_knowledge.db")
60
-
61
- training_bot.ask("What is FAFSA in college?", True)
62
- ```
63
-
64
- ('apply' mode [deployment/production use after training])
65
- ```python
66
- from dlm import DLM
67
-
68
- commercial_bot = DLM("apply", "college_knowledge.db")
69
-
70
- commercial_bot.ask("What is the difference between FAFSA and CADAA in California?", False)
71
-
72
- # or
73
-
74
- commercial_bot.ask("Tell me the result for the following: 5 * 5 * 5 + 5 / 5", True)
75
- ```
76
-
77
- **HIGH-LEVEL PIPELINE VISUAL**:
78
-
79
- ![image](https://github.com/user-attachments/assets/e61d3f5d-87ca-4c81-bcb4-c28a0df65300)
80
-
@@ -1,62 +0,0 @@
1
- <table>
2
- <tr>
3
- <td><img src="https://ik.imagekit.io/cqhzoyggfm/DLM%20Logo.png?updatedAt=1759635222204" width="90"></td>
4
- <td><h1>Dynamic Learning Model</h1></td>
5
- </tr>
6
- </table>
7
-
8
- 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.
9
-
10
- Key capabilities include:
11
-
12
- * FAQ Handling: Learns and responds to frequently asked questions based on the knowledge it has been trained on.
13
-
14
- * Chain-of-Thought (CoT) Reasoning: Performs clear, step-by-step logic to solve non-ambiguous arithmetic, geometric, and unit conversion problems.
15
-
16
- * Custom Knowledge Integration: DLM is fully extensible. You can initialize it with an empty SQL database and train it with your domain-specific knowledge.
17
-
18
- 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
19
-
20
- **REQUIRED PARAMETERS**:
21
- * The constructor requires passing in two parameters:
22
- - Bot Mode:
23
- - 'learn' = Enables training using the memory model. The bot can be updated with new information
24
- - 'apply' = The bot automatically switches between its "compute" and "memory" model depending on the query asked
25
- - Empty SQL Database for training the bot with queries and for the memory model
26
- * The ask() method also requires passing in two parameters:
27
- - Query: "What is the definition of FAFSA" (as an example)
28
- - Display Thought: "True" to allow the bot's Chain of Thought to be displayed, or else "False"
29
-
30
- **GET STARTED**:
31
- * To install, run:
32
- ```bash
33
- pip install dynamic-learning-model
34
- ```
35
- * ***Python 3.12.0 or higher is required to use this bot in your program.***
36
-
37
- ('learn' mode [training queries])
38
- ```python
39
- from dlm import DLM
40
-
41
- training_bot = DLM("learn", "college_knowledge.db")
42
-
43
- training_bot.ask("What is FAFSA in college?", True)
44
- ```
45
-
46
- ('apply' mode [deployment/production use after training])
47
- ```python
48
- from dlm import DLM
49
-
50
- commercial_bot = DLM("apply", "college_knowledge.db")
51
-
52
- commercial_bot.ask("What is the difference between FAFSA and CADAA in California?", False)
53
-
54
- # or
55
-
56
- commercial_bot.ask("Tell me the result for the following: 5 * 5 * 5 + 5 / 5", True)
57
- ```
58
-
59
- **HIGH-LEVEL PIPELINE VISUAL**:
60
-
61
- ![image](https://github.com/user-attachments/assets/e61d3f5d-87ca-4c81-bcb4-c28a0df65300)
62
-
@@ -1,80 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: dynamic-learning-model
3
- Version: 4.0.2
4
- Summary: A Dynamic-Learning Model (DLM) chatbot with memory and compute reasoning modes.
5
- Author-email: Vignesh Thondikulam <vignesh.tho2006@gmail.com>
6
- License: MIT
7
- Project-URL: Homepage, https://github.com/VigneshT24/Dynamic_Learning_Model
8
- Project-URL: Repository, https://github.com/VigneshT24/Dynamic_Learning_Model
9
- Requires-Python: >=3.12
10
- Description-Content-Type: text/markdown
11
- License-File: LICENSE
12
- Requires-Dist: spacy>=3.7
13
- Requires-Dist: transformers>=4.30
14
- Requires-Dist: torch>=2.0
15
- Requires-Dist: better-profanity>=0.7
16
- Requires-Dist: nltk>=3.8
17
- Dynamic: license-file
18
-
19
- <table>
20
- <tr>
21
- <td><img src="https://ik.imagekit.io/cqhzoyggfm/DLM%20Logo.png?updatedAt=1759635222204" width="90"></td>
22
- <td><h1>Dynamic Learning Model</h1></td>
23
- </tr>
24
- </table>
25
-
26
- 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.
27
-
28
- Key capabilities include:
29
-
30
- * FAQ Handling: Learns and responds to frequently asked questions based on the knowledge it has been trained on.
31
-
32
- * Chain-of-Thought (CoT) Reasoning: Performs clear, step-by-step logic to solve non-ambiguous arithmetic, geometric, and unit conversion problems.
33
-
34
- * Custom Knowledge Integration: DLM is fully extensible. You can initialize it with an empty SQL database and train it with your domain-specific knowledge.
35
-
36
- 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
37
-
38
- **REQUIRED PARAMETERS**:
39
- * The constructor requires passing in two parameters:
40
- - Bot Mode:
41
- - 'learn' = Enables training using the memory model. The bot can be updated with new information
42
- - 'apply' = The bot automatically switches between its "compute" and "memory" model depending on the query asked
43
- - Empty SQL Database for training the bot with queries and for the memory model
44
- * The ask() method also requires passing in two parameters:
45
- - Query: "What is the definition of FAFSA" (as an example)
46
- - Display Thought: "True" to allow the bot's Chain of Thought to be displayed, or else "False"
47
-
48
- **GET STARTED**:
49
- * To install, run:
50
- ```bash
51
- pip install dynamic-learning-model
52
- ```
53
- * ***Python 3.12.0 or higher is required to use this bot in your program.***
54
-
55
- ('learn' mode [training queries])
56
- ```python
57
- from dlm import DLM
58
-
59
- training_bot = DLM("learn", "college_knowledge.db")
60
-
61
- training_bot.ask("What is FAFSA in college?", True)
62
- ```
63
-
64
- ('apply' mode [deployment/production use after training])
65
- ```python
66
- from dlm import DLM
67
-
68
- commercial_bot = DLM("apply", "college_knowledge.db")
69
-
70
- commercial_bot.ask("What is the difference between FAFSA and CADAA in California?", False)
71
-
72
- # or
73
-
74
- commercial_bot.ask("Tell me the result for the following: 5 * 5 * 5 + 5 / 5", True)
75
- ```
76
-
77
- **HIGH-LEVEL PIPELINE VISUAL**:
78
-
79
- ![image](https://github.com/user-attachments/assets/e61d3f5d-87ca-4c81-bcb4-c28a0df65300)
80
-