-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.jac
25 lines (24 loc) · 913 Bytes
/
main.jac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// import the graph, kb file, and walkers.
import {*} with "./server/models/faq-state/faq_graph.jac";
import {*} with "./server/models/faq-state/ask.jac";
import {*} with "./server/models/faq-state/kb.jac";
import {*} with "./server/models/vote-state/vote_graph.jac";
import {*} with "./server/models/vote-state/talk.jac";
import {*} with "./ai_model.jac";
import {*} with "./bi_enc.jac";
import {*} with "./tfm_ner.jac";
/// @notice this walker is reponsible for starting the program.
walker init {
std.actload_module("jac_nlp.use_qa");
std.actload_module("jac_nlp.bi_enc");
std.actload_module("jac_nlp.tfm_ner");
root {
server = spawn here ++> graph::faq_state;
server = spawn here ++> graph::vote_state;
spawn here walker::talk;
spawn here walker::ingest_faq(kb_file="main_faq.json");
while (true){
spawn here walker::ask;
}
}
}