Storing Knowledge Cores
If you plan on storing a knowledge core, the storage scripts must be started PRIOR to beginning to the extraction process.
Knowledge Core CLI​
pip3 install trustgraph-cli
The trustgraph-cli
version needs to match the version of TrustGraph
.
Storing During Extraction​
Before beginning an extraction process, open a new terminal
window. One window will be used to interact with TrustGraph
while the other terminal
window will run the storage command while TrustGraph
runs the extraction process.
In the second terminal
window:
tg-save-kg-core -o <outfile-core-name>
In the main TrustGraph
window, you can now begin the extraction process with the document loader commands. Periodically, the storage scripts will dump the extracted graph edges and embeddings. Once the Knowledge Core
has been successfully saved, the storage process must be ended manually. In the second terminal
window, enter ctrl+c
to end the process.