Add a New Pipeline
-
From the
Home page, click
Create pipeline.
-
Enter a Pipeline name.
-
For Pipeline type, select
Export Text Intelligence Studio Annotations.
-
Click Create.
The
General tab opens. Recommendation:
Click
Save after any editing operation.
What's NextYou can now configure the source of your pipeline.
Configure the Source
Once the pipeline is created, configure the source that is the connection to the
Text Intelligence Studio project which contains the annotation results.
-
Select the
Source tab.
-
For Project id, define the id of the Text Intelligence Studio project from which you want to fetch annotated documents.
-
For Embeddings, select if you want to Activate
embeddings or Deactivate embeddings.
When you activate embeddings, the pipeline adds a new
Embeddings expression in the
Processing tab. For more information, see Verify the Processing.
-
Configure the Scheduling that is the refresh frequency of the
source to fetch.
You can specify intervals, like every 10 minutes, every hour, every day, etc.
You can define your own custom source scheduling using a Quartz cron
custom expression. For example:
"0 0 13 * * ?" indicates that you want to schedule the processor
to run at 1:00 PM every day.
"0 20 14 ? * MON-FRI" indicates that you want to schedule the
processor to run at 2:20 PM from Monday to Friday.
"0 15 10 ? * 6L 2011-2017" indicates that you want to schedule
the processor to run at 10:15 AM, on the last Friday of every month, between 2011
and 2017.
For more information on Quartz format, see https://www.quartz-scheduler.org/documentation/.
-
Click
Save.
What's NextYou can now optionally configure some processing on your data. If it is not required,
you can configure the pipeline destination.
Verify the Processing
The processing expression required to make the mapping of the Text Intelligence Studio data with JSON event data is predefined. You do not need to configure it.
You can also see a default processing expression for embeddings if you activated
Embeddings in the
Source tab.
-
Select the
Processing tab.
-
In Annotations, you can see a default Processing
expression:
{action: "AddOrReplaceItem",
item: {
/* URI is an internal field that will not appear in the data model */
uri : record.ExternalId,
/* Target data model class */
class: "com.netvibes.TISDocument",
corpusId: record.CorpusId,
externalId: record.ExternalId,
documentId: record.DocumentId,
title : record.Title,
docDate: record.DocDate,
analysisDate: DateTime.parse(record.AnalysisDate,"yyyy-MM-dd'T'HH:mm:ss.SSSSSSSVV"),
projectId: record.ProjectId,
analysisId : record.AnalysisId,
content: record.Text,
/* Transform the Text Intelligence Studio metas in a list of HierarchicalString meta_name / meta value for faceting */
metas: record.Metas.map ( m=> [m.Name, m.Value]),
/* Aggregate Text Intelligence Studio Categories in a list of HierarchicalString. */
categories: record.Categories.map ( c => [c.FacetName, ...c.Segments])
}}
- Optional:
If you selected the Activate embeddings option in
Source tab, the Embeddings section
displays with a default Processing Expression to retrieve
embeddings.
{action: "AddOrReplaceItem",
item: {
/* Target data model class */
class: "com.netvibes.TISDocumentEmbedding",
externalId: record.DocExternalId,
internalId: record.DocInternalId,
chunkText: record.ChunkText,
startOffset: record.StartOffset,
endOffset : record.EndOffset,
vector: record.Vector
}}
What's NextYou can now configure the pipeline destination.
Configure the Destination
Define in which primary storage, the ingestion pipeline must export the data.
-
Select the
Destination tab.
-
Select or create the Storage where you want to push
data.
The supported storage types are:
Index Unit,
Object Storage Bucket,
External S3 Bucket.
- Optional:
If the target storage is an index
unit, you can:
- Select an existing index unit,
- Or create an index unit by clicking
Create target storage and generating its default class
automatically.
- Optional:
If the target storage is an index
unit and the Activate embeddings option is selected in the
Source tab, create a Class named
TISDocumentEmbedding.
For Package, specify com.netvibes.

- Optional:
If the target storage is an
object storage or an external S3,
enter a Path prefix to export data in a specific folder.
-
Click
Save.
What's NextYou can now run the pipeline configuration.
Run the Pipeline Configuration
Once the configuration is complete, you can apply it to start indexing documents.
-
Select the
Activity tab.
The running status of the indexing displays at the top of the
screen.
-
To start the pipeline indexing, click
Start.
You can stop the indexing at any time and restart it when ready.
Note:
In addition, for the
Index Tabular Data and the
Index Event Data pipelines, you can stop the pipeline and
click Resume to restart the indexing from where it stopped.
Delete a Pipeline
Deleting a pipeline is an action that cannot be undone. Proceed with caution.
-
In the
General tab, go to the bottom of the
Action section.
-
Click
Delete.
This action stops data ingestion and deletes the pipeline.
|