Skip to content

✨ 🧬 Turing ES - Enterprise Search, Semantic Navigation, Chatbot using Search Engine and Generative AI.

License

Notifications You must be signed in to change notification settings

openviglet/turing

Repository files navigation

viglet_logo.png

Viglet Turing is a platform that uses natural language processing (NLP) and machine learning to provide more intelligent data. Choose your favorite NLP as CoreNLP and OpenText Content Analytics, and index your content in Solr with higher added value. Train and manages models for your learning machine like Google Tensorflow.

If you'd like to contribute to Viglet Turing, be sure to review the contribution guidelines.

We use GitHub issues for tracking requests and bugs.

Installation

Maven

Docker

$ docker pull solr
$ docker run -d -p 8983:8983 --name solr solr

Solr

Create Core

Create the turing core into Solr with command:

$ docker exec -it solr bash
$ cd /opt/solr/bin
$ ./solr create -c turing

Create Fields

Create the default fields into Solr with command:

$ curl -X POST -H 'Content-type:application/json' --data-binary '{
  "add-field":{
     "name":"turing_entity_PN",
     "type":"text_general",
     "indexed":true,
     "stored":true }
}' http://localhost:8983/solr/turing/schema

$ curl -X POST -H 'Content-type:application/json' --data-binary '{
  "add-field":{
     "name":"turing_entity_ON",
     "type":"text_general",
     "indexed":true,
     "stored":true }
}' http://localhost:8983/solr/turing/schema

$ curl -X POST -H 'Content-type:application/json' --data-binary '{
  "add-field":{
     "name":"turing_entity_GL",
     "type":"text_general",
     "indexed":true,
     "stored":true }
}' http://localhost:8983/solr/turing/schema
$ curl -X POST -H 'Content-type:application/json' --data-binary '{
  "add-field":{
     "name":"turing_entity_IPTC",
     "type":"text_general",
     "indexed":true,
     "stored":true }
}' http://localhost:8983/solr/turing/schema
$ curl -X POST -H 'Content-type:application/json' --data-binary '{
  "add-field":{
     "name":"turing_entity_ComplexConcepts",
     "type":"text_general",
     "indexed":true,
     "stored":true }
}' http://localhost:8983/solr/turing/schema

Highlighting

Solr Highlighting to work requires that the fields that use this feature be text_general type. So add or modify the following fields in /opt/solr/server/solr/turing/conf/managed-schema file.

<field name="text" type="text_general" indexed="true" stored="true"/>
<field name="title" type="text_general" indexed="true" stored="true"/>

Deploy

Bower

Bower is a command line utility. Install it with npm.

$ npm install -g bower

Bower requires node, npm and git.

More details: https://bower.io/#install-bower

Run

To run Viglet Turing with Jetty 9 embedded, just execute the following line:

$ mvn jetty:run

Viglet Turing

For more information