-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8ccbab0
commit 097974b
Showing
26 changed files
with
802 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,7 @@ node_modules | |
bin | ||
obj | ||
__pycache__ | ||
charts | ||
charts | ||
**/Python/**/modules | ||
**/Python/cache | ||
**/Python/models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export KUBECONFIG=~/.kube/config:/mnt/c/Users/{USER}/.kube/config | ||
kubectl config view --flatten > /mnt/c/Users/{USER}/.kube/config | ||
export KUBECONFIG=~/.kube/config:/mnt/c/Users/Gio/.kube/config | ||
kubectl config view --flatten > /mnt/c/Users/Gio/.kube/config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
const mongoose = require("mongoose"); | ||
|
||
const QAModelSchema = new mongoose.Schema( | ||
{ | ||
projectId: { | ||
type: String, | ||
index: true, | ||
required: true, | ||
unique: true, | ||
}, | ||
data: { | ||
type: String, | ||
required: true, | ||
minlength: 10, | ||
maxlength: 1000 | ||
} | ||
}, | ||
); | ||
|
||
const IntentProjectDataSchema = new mongoose.Schema( | ||
{ | ||
projectId: { | ||
type: String, | ||
index: true, | ||
required: true, | ||
unique: true, | ||
}, | ||
data: [ | ||
{ | ||
intent: { | ||
type: String, | ||
required: true, | ||
}, | ||
sentences: [String] | ||
} | ||
] | ||
}, | ||
); | ||
|
||
const QAModel = mongoose.model("QAModel", QAModelSchema); | ||
const IntentProjectData = mongoose.model("IntentProjectData", IntentProjectDataSchema); | ||
|
||
module.exports = { | ||
QAModel, IntentProjectData | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ | ||
"dependencies": { | ||
"body-parser": "^1.19.0", | ||
"express": "^4.17.1", | ||
"kafkajs": "^1.15.0" | ||
"kafkajs": "^1.15.0", | ||
"mongoose": "^5.12.3" | ||
} | ||
} |
Oops, something went wrong.