Product Selector

Fusion 5.9
    Fusion 5.9

    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

    1. Navigate to Indexing > Index Pipelines.

    2. Click Add+.

    3. Enter the Pipeline ID, for example LWAI-async-summarization-and-keyword-extraction.

    4. Select the Solr Indexer stage and click on Remove stage.

    Field Mapping

    Configure the Field Mapping stage as follows.

    1. Make sure that Unmapped Fields is checked.

    2. Make sure that Keep is checked.

    3. Save the pipeline.

    Solr Dynamic Field Name Mapping

    Configure the Solr Dynamic Field Name Mapping stage as follows.

    1. Enter a Max Length for Advanced Indexing of Text Fields, such as 100.

    2. Save the pipeline.

    LWAI: Summarization

    Summarization is set up via the LWAI Prediction stage.

    1. Click Add a new pipeline stage > LWAI Prediction.

    2. Enter a Label, such as LWAI: Summarization.

    3. Select the Account Name as defined in Lucidworks AI Gateway.

    4. Select the Use Case as summarization.

    5. Select the Model to use.

    6. Enter the Input context variable, for example, <doc.body_t>.

    7. Enter the Destination Field Name & Context Output, for example, body_summarization.

    8. Enter values for the Use Case Configuration:

      1. Enter the Parameter Name, such as maxWords.

      2. Enter a Parameter Value, for example, 250.

    9. Make sure Call Asynchronously? is checked.

    10. Enter the Maximum Asynchronous Call Tries, such as 1.

    11. Save the pipeline.

    LWAI: Keyword Extraction

    Keyword extraction is set up using the LWAI Prediction stage.

    1. Click Add a new pipeline stage > LWAI Prediction.

    2. Enter a Label, such as LWAI: Keyword Extraction.

    3. Select the Account Name as defined in Lucidworks AI Gateway.

    4. Select the Use Case as keyword_extraction.

    5. Select the Model to use.

    6. Enter the Input context variable, for example, <doc.body_t>.

    7. Enter the Destination Field Name & Context Output, for example, body_extracted_keywords.

    8. Enter values for the Use Case Configuration:

      1. Enter the Parameter Name, such as maxKeywo`rds.

      2. Enter the Parameter Value, for example, 50.

    9. Make sure Call Asynchronously? is checked.

    10. Enter the Maximum Asynchronous Call Tries, such as 1.

    11. Save the pipeline.

    Solr Partial Update Indexer

    Configure the Solr Partial Update Indexer stage as follows.

    1. Click Add a new pipeline stage > Solr Partial Update Indexer.

    2. Make sure Map to Solr Schema is checked.

    3. Make sure Process All Pipeline Doc Fields is checked.

    4. Enter the Solr Document ID Field Value as <doc.id>.

    5. Enter values under Updates:

      1. Enter the Update Type as increment.

      2. Enter the Field Name as increment_i.

      3. Enter a Value, such as 1.

    6. Make sure Allow reserved fields is checked.

    7. Save the pipeline.

    Order the stages

    1. Make sure the stages are in the following order:

      1. Field Mapping

      2. Solr Dynamic Field Name Mapping

      3. LWAI: Summarization

      4. LWAI: Keyword Extraction

      5. Solr Partial Update Indexer

    2. Save the pipeline.