dynamic-learning-model 1.2__tar.gz → 1.2.6__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.
- {dynamic_learning_model-1.2/dynamic_learning_model.egg-info → dynamic_learning_model-1.2.6}/PKG-INFO +49 -7
- dynamic_learning_model-1.2.6/README.md +67 -0
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6}/dlm/DLM.py +4 -2
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6/dynamic_learning_model.egg-info}/PKG-INFO +49 -7
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6}/setup.py +1 -1
- dynamic_learning_model-1.2/README.md +0 -25
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6}/LICENSE +0 -0
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6}/dlm/__init__.py +0 -0
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6}/dynamic_learning_model.egg-info/SOURCES.txt +0 -0
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6}/dynamic_learning_model.egg-info/dependency_links.txt +0 -0
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6}/dynamic_learning_model.egg-info/requires.txt +0 -0
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6}/dynamic_learning_model.egg-info/top_level.txt +0 -0
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6}/pyproject.toml +0 -0
- {dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6}/setup.cfg +0 -0
{dynamic_learning_model-1.2/dynamic_learning_model.egg-info → dynamic_learning_model-1.2.6}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dynamic-learning-model
|
|
3
|
-
Version: 1.2
|
|
3
|
+
Version: 1.2.6
|
|
4
4
|
Summary: A Dynamic Learning Model for processing NLP queries using hybrid AI and reasoning.
|
|
5
5
|
Home-page: https://github.com/VigneshT24/Dynamic_Learning_Model
|
|
6
6
|
Author: Vignesh Thondikulam
|
|
@@ -32,22 +32,64 @@ Dynamic: summary
|
|
|
32
32
|

|
|
33
33
|
|
|
34
34
|
# Dynamic Learning Model
|
|
35
|
-
|
|
35
|
+
**ABOUT**:
|
|
36
|
+
|
|
37
|
+
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.
|
|
36
38
|
|
|
37
39
|
Key capabilities include:
|
|
38
40
|
|
|
39
41
|
* FAQ Handling: Learns and responds to frequently asked questions based on the knowledge it has been trained on.
|
|
40
42
|
|
|
41
|
-
* Chain-of-Thought (CoT) Reasoning: Performs clear, step
|
|
43
|
+
* Chain-of-Thought (CoT) Reasoning: Performs clear, step-by-step logic to solve non-ambiguous arithmetic and unit conversion problems.
|
|
44
|
+
|
|
45
|
+
* Custom Knowledge Integration: DLM is fully extensible. You can initialize it with an empty SQL database and train it with your domain-specific knowledge.
|
|
46
|
+
|
|
47
|
+
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
|
|
48
|
+
|
|
49
|
+
**REQUIRED PARAMETERS**:
|
|
50
|
+
* The constructor requires passing in two parameters:
|
|
51
|
+
- Bot Mode: 't' = training, 'c' = commercial, 'e' = experimental
|
|
52
|
+
- Empty SQL Database for training the bot with queries
|
|
53
|
+
* The ask() method also requires passing in two parameters:
|
|
54
|
+
- Query: "What is the definition of FAFSA" (as an example)
|
|
55
|
+
- Display Thought: "True" to allow the bot's Chain of Thought to be displayed, or else "False"
|
|
56
|
+
|
|
57
|
+
**GET STARTED**:
|
|
58
|
+
* To install, run:
|
|
59
|
+
```bash
|
|
60
|
+
pip install dynamic-learning-model
|
|
61
|
+
```
|
|
62
|
+
* ***Python 3.12 or higher is required to use this bot in your program***
|
|
63
|
+
|
|
64
|
+
(Experimental 'e' mode [computation queries])
|
|
65
|
+
```python
|
|
66
|
+
from dlm import DLM
|
|
67
|
+
|
|
68
|
+
computation_bot = DLM("e", "college_knowledge.db")
|
|
69
|
+
|
|
70
|
+
computation_bot.ask("Compute the following: 5 * 5 * 5 + 5 / 5", True)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
(Training 't' mode [training queries])
|
|
74
|
+
* You can find the training password in the ```__trainingPwd``` variable defined within the DLM.py file
|
|
75
|
+
```python
|
|
76
|
+
from dlm import DLM
|
|
77
|
+
|
|
78
|
+
training_bot = DLM("t", "college_knowledge.db")
|
|
42
79
|
|
|
43
|
-
|
|
80
|
+
training_bot.ask("What is FAFSA in college?", True)
|
|
81
|
+
```
|
|
44
82
|
|
|
45
|
-
|
|
83
|
+
(Commercial 'c' mode [deployment/production use after training])
|
|
84
|
+
```python
|
|
85
|
+
from dlm import DLM
|
|
46
86
|
|
|
47
|
-
|
|
87
|
+
commercial_bot = DLM("c", "college_knowledge.db")
|
|
48
88
|
|
|
49
|
-
|
|
89
|
+
commercial_bot.ask("What is the difference between FAFSA and CADAA in California?", False)
|
|
90
|
+
```
|
|
50
91
|
|
|
92
|
+
**HIGH-LEVEL PIPELINE VISUALS**:
|
|
51
93
|
|
|
52
94
|

|
|
53
95
|
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+

|
|
2
|
+

|
|
3
|
+
|
|
4
|
+
# Dynamic Learning Model
|
|
5
|
+
**ABOUT**:
|
|
6
|
+
|
|
7
|
+
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.
|
|
8
|
+
|
|
9
|
+
Key capabilities include:
|
|
10
|
+
|
|
11
|
+
* FAQ Handling: Learns and responds to frequently asked questions based on the knowledge it has been trained on.
|
|
12
|
+
|
|
13
|
+
* Chain-of-Thought (CoT) Reasoning: Performs clear, step-by-step logic to solve non-ambiguous arithmetic and unit conversion problems.
|
|
14
|
+
|
|
15
|
+
* Custom Knowledge Integration: DLM is fully extensible. You can initialize it with an empty SQL database and train it with your domain-specific knowledge.
|
|
16
|
+
|
|
17
|
+
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
|
|
18
|
+
|
|
19
|
+
**REQUIRED PARAMETERS**:
|
|
20
|
+
* The constructor requires passing in two parameters:
|
|
21
|
+
- Bot Mode: 't' = training, 'c' = commercial, 'e' = experimental
|
|
22
|
+
- Empty SQL Database for training the bot with queries
|
|
23
|
+
* The ask() method also requires passing in two parameters:
|
|
24
|
+
- Query: "What is the definition of FAFSA" (as an example)
|
|
25
|
+
- Display Thought: "True" to allow the bot's Chain of Thought to be displayed, or else "False"
|
|
26
|
+
|
|
27
|
+
**GET STARTED**:
|
|
28
|
+
* To install, run:
|
|
29
|
+
```bash
|
|
30
|
+
pip install dynamic-learning-model
|
|
31
|
+
```
|
|
32
|
+
* ***Python 3.12 or higher is required to use this bot in your program***
|
|
33
|
+
|
|
34
|
+
(Experimental 'e' mode [computation queries])
|
|
35
|
+
```python
|
|
36
|
+
from dlm import DLM
|
|
37
|
+
|
|
38
|
+
computation_bot = DLM("e", "college_knowledge.db")
|
|
39
|
+
|
|
40
|
+
computation_bot.ask("Compute the following: 5 * 5 * 5 + 5 / 5", True)
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
(Training 't' mode [training queries])
|
|
44
|
+
* You can find the training password in the ```__trainingPwd``` variable defined within the DLM.py file
|
|
45
|
+
```python
|
|
46
|
+
from dlm import DLM
|
|
47
|
+
|
|
48
|
+
training_bot = DLM("t", "college_knowledge.db")
|
|
49
|
+
|
|
50
|
+
training_bot.ask("What is FAFSA in college?", True)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
(Commercial 'c' mode [deployment/production use after training])
|
|
54
|
+
```python
|
|
55
|
+
from dlm import DLM
|
|
56
|
+
|
|
57
|
+
commercial_bot = DLM("c", "college_knowledge.db")
|
|
58
|
+
|
|
59
|
+
commercial_bot.ask("What is the difference between FAFSA and CADAA in California?", False)
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
**HIGH-LEVEL PIPELINE VISUALS**:
|
|
63
|
+
|
|
64
|
+

|
|
65
|
+
|
|
66
|
+
|
|
67
|
+

|
|
@@ -491,7 +491,9 @@ class DLM:
|
|
|
491
491
|
float(word) # Try to treat as number
|
|
492
492
|
unique_words.append(word) # Keep numeric strings (duplicates allowed)
|
|
493
493
|
except ValueError:
|
|
494
|
-
if word
|
|
494
|
+
if any(word in keywords for keywords in self.__computation_identifiers.values()):
|
|
495
|
+
unique_words.append(word) # Keep identifier words (duplicates allowed)
|
|
496
|
+
elif word not in seen:
|
|
495
497
|
seen.add(word)
|
|
496
498
|
unique_words.append(word)
|
|
497
499
|
|
|
@@ -606,6 +608,7 @@ class DLM:
|
|
|
606
608
|
continue
|
|
607
609
|
if fq_l in {"+", "-", "*", "/"}:
|
|
608
610
|
operands_mentioned.append(fq_l)
|
|
611
|
+
keywords_mentioned.append(fq_l)
|
|
609
612
|
continue # move on to the next token
|
|
610
613
|
for operand, keywords in self.__computation_identifiers.items():
|
|
611
614
|
for kw in keywords:
|
|
@@ -744,7 +747,6 @@ class DLM:
|
|
|
744
747
|
else:
|
|
745
748
|
if '=' in operands_mentioned:
|
|
746
749
|
operands_mentioned = [op for op in operands_mentioned if op != '=']
|
|
747
|
-
operands_mentioned = list(dict.fromkeys(operands_mentioned))
|
|
748
750
|
|
|
749
751
|
print("\n")
|
|
750
752
|
if any(not lst for lst in (num_mentioned, operands_mentioned)) or (
|
{dynamic_learning_model-1.2 → dynamic_learning_model-1.2.6/dynamic_learning_model.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dynamic-learning-model
|
|
3
|
-
Version: 1.2
|
|
3
|
+
Version: 1.2.6
|
|
4
4
|
Summary: A Dynamic Learning Model for processing NLP queries using hybrid AI and reasoning.
|
|
5
5
|
Home-page: https://github.com/VigneshT24/Dynamic_Learning_Model
|
|
6
6
|
Author: Vignesh Thondikulam
|
|
@@ -32,22 +32,64 @@ Dynamic: summary
|
|
|
32
32
|

|
|
33
33
|
|
|
34
34
|
# Dynamic Learning Model
|
|
35
|
-
|
|
35
|
+
**ABOUT**:
|
|
36
|
+
|
|
37
|
+
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.
|
|
36
38
|
|
|
37
39
|
Key capabilities include:
|
|
38
40
|
|
|
39
41
|
* FAQ Handling: Learns and responds to frequently asked questions based on the knowledge it has been trained on.
|
|
40
42
|
|
|
41
|
-
* Chain-of-Thought (CoT) Reasoning: Performs clear, step
|
|
43
|
+
* Chain-of-Thought (CoT) Reasoning: Performs clear, step-by-step logic to solve non-ambiguous arithmetic and unit conversion problems.
|
|
44
|
+
|
|
45
|
+
* Custom Knowledge Integration: DLM is fully extensible. You can initialize it with an empty SQL database and train it with your domain-specific knowledge.
|
|
46
|
+
|
|
47
|
+
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
|
|
48
|
+
|
|
49
|
+
**REQUIRED PARAMETERS**:
|
|
50
|
+
* The constructor requires passing in two parameters:
|
|
51
|
+
- Bot Mode: 't' = training, 'c' = commercial, 'e' = experimental
|
|
52
|
+
- Empty SQL Database for training the bot with queries
|
|
53
|
+
* The ask() method also requires passing in two parameters:
|
|
54
|
+
- Query: "What is the definition of FAFSA" (as an example)
|
|
55
|
+
- Display Thought: "True" to allow the bot's Chain of Thought to be displayed, or else "False"
|
|
56
|
+
|
|
57
|
+
**GET STARTED**:
|
|
58
|
+
* To install, run:
|
|
59
|
+
```bash
|
|
60
|
+
pip install dynamic-learning-model
|
|
61
|
+
```
|
|
62
|
+
* ***Python 3.12 or higher is required to use this bot in your program***
|
|
63
|
+
|
|
64
|
+
(Experimental 'e' mode [computation queries])
|
|
65
|
+
```python
|
|
66
|
+
from dlm import DLM
|
|
67
|
+
|
|
68
|
+
computation_bot = DLM("e", "college_knowledge.db")
|
|
69
|
+
|
|
70
|
+
computation_bot.ask("Compute the following: 5 * 5 * 5 + 5 / 5", True)
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
(Training 't' mode [training queries])
|
|
74
|
+
* You can find the training password in the ```__trainingPwd``` variable defined within the DLM.py file
|
|
75
|
+
```python
|
|
76
|
+
from dlm import DLM
|
|
77
|
+
|
|
78
|
+
training_bot = DLM("t", "college_knowledge.db")
|
|
42
79
|
|
|
43
|
-
|
|
80
|
+
training_bot.ask("What is FAFSA in college?", True)
|
|
81
|
+
```
|
|
44
82
|
|
|
45
|
-
|
|
83
|
+
(Commercial 'c' mode [deployment/production use after training])
|
|
84
|
+
```python
|
|
85
|
+
from dlm import DLM
|
|
46
86
|
|
|
47
|
-
|
|
87
|
+
commercial_bot = DLM("c", "college_knowledge.db")
|
|
48
88
|
|
|
49
|
-
|
|
89
|
+
commercial_bot.ask("What is the difference between FAFSA and CADAA in California?", False)
|
|
90
|
+
```
|
|
50
91
|
|
|
92
|
+
**HIGH-LEVEL PIPELINE VISUALS**:
|
|
51
93
|
|
|
52
94
|

|
|
53
95
|
|
|
@@ -5,7 +5,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
|
|
|
5
5
|
|
|
6
6
|
setup(
|
|
7
7
|
name='dynamic-learning-model',
|
|
8
|
-
version='1.2',
|
|
8
|
+
version='1.2.6',
|
|
9
9
|
author='Vignesh Thondikulam',
|
|
10
10
|
author_email='vignesh.tho2006@gmail.com',
|
|
11
11
|
description='A Dynamic Learning Model for processing NLP queries using hybrid AI and reasoning.',
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-

|
|
2
|
-

|
|
3
|
-
|
|
4
|
-
# Dynamic Learning Model
|
|
5
|
-
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 to improve over time as it interacts with users.
|
|
6
|
-
|
|
7
|
-
Key capabilities include:
|
|
8
|
-
|
|
9
|
-
* FAQ Handling: Learns and responds to frequently asked questions based on the knowledge it has been trained on.
|
|
10
|
-
|
|
11
|
-
* Chain-of-Thought (CoT) Reasoning: Performs clear, step by step logic to solve non-ambiguous arithmetic and unit conversion problems.
|
|
12
|
-
|
|
13
|
-
* Custom Knowledge Integration: DLM is fully extensible. You can initialize it with an empty SQL database and train it with your own domain-specific knowledge.
|
|
14
|
-
|
|
15
|
-
Whether you're building a student support bot, a domain-specific assistant, or an adaptive Q&A system, DLM offers a flexible foundation to power your intelligent applications
|
|
16
|
-
|
|
17
|
-
* This model uses SpaCy, SQLite, & NLTK for many of its functions
|
|
18
|
-
|
|
19
|
-
NOTICE: This is a public package, to install it, run: **pip install dynamic-learning-model**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-

|
|
23
|
-
|
|
24
|
-
|
|
25
|
-

|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|