LWAI async summarization and keyword extraction pipelineLucidworks AI
This pipeline uses the following stages:
-
Field Mapping
-
Solr Dynamic Field Name Mapping
-
LWAI: Summarization
-
LWAI: Keyword Extraction
-
Solr Partial Update Indexer
Add the pipeline
-
Navigate to Indexing > Index Pipelines.
-
Click Add+.
-
Enter the Pipeline ID, for example
LWAI-async-summarization-and-keyword-extraction
. -
Select the Solr Indexer stage and click on Remove stage.
Field Mapping
Configure the Field Mapping stage as follows.
-
Make sure that Unmapped Fields is checked.
-
Make sure that Keep is checked.
-
Save the pipeline.
Solr Dynamic Field Name Mapping
Configure the Solr Dynamic Field Name Mapping stage as follows.
-
Enter a Max Length for Advanced Indexing of Text Fields, such as
100
. -
Save the pipeline.
LWAI: Summarization
Summarization is set up via the LWAI Prediction stage.
-
Click Add a new pipeline stage > LWAI Prediction.
-
Enter a Label, such as
LWAI: Summarization
. -
Select the Account Name as defined in Lucidworks AI Gateway.
-
Select the Use Case as
summarization
. -
Select the Model to use.
-
Enter the Input context variable, for example,
<doc.body_t>
. -
Enter the Destination Field Name & Context Output, for example,
body_summarization
. -
Enter values for the Use Case Configuration:
-
Enter the Parameter Name, such as
maxWords
. -
Enter a Parameter Value, for example,
250
.
-
-
Make sure Call Asynchronously? is checked.
-
Enter the Maximum Asynchronous Call Tries, such as
1
. -
Save the pipeline.
LWAI: Keyword Extraction
Keyword extraction is set up using the LWAI Prediction stage.
-
Click Add a new pipeline stage > LWAI Prediction.
-
Enter a Label, such as
LWAI: Keyword Extraction
. -
Select the Account Name as defined in Lucidworks AI Gateway.
-
Select the Use Case as
keyword_extraction
. -
Select the Model to use.
-
Enter the Input context variable, for example,
<doc.body_t>
. -
Enter the Destination Field Name & Context Output, for example,
body_extracted_keywords
. -
Enter values for the Use Case Configuration:
-
Enter the Parameter Name, such as maxKeywo`rds.
-
Enter the Parameter Value, for example,
50
.
-
-
Make sure Call Asynchronously? is checked.
-
Enter the Maximum Asynchronous Call Tries, such as
1
. -
Save the pipeline.
Solr Partial Update Indexer
Configure the Solr Partial Update Indexer stage as follows.
-
Click Add a new pipeline stage > Solr Partial Update Indexer.
-
Make sure Map to Solr Schema is checked.
-
Make sure Process All Pipeline Doc Fields is checked.
-
Enter the Solr Document ID Field Value as
<doc.id>
. -
Enter values under Updates:
-
Enter the Update Type as
increment
. -
Enter the Field Name as
increment_i
. -
Enter a Value, such as
1
.
-
-
Make sure Allow reserved fields is checked.
-
Save the pipeline.
Order the stages
-
Make sure the stages are in the following order:
-
Field Mapping
-
Solr Dynamic Field Name Mapping
-
LWAI: Summarization
-
LWAI: Keyword Extraction
-
Solr Partial Update Indexer
-
-
Save the pipeline.