Skip to main content Skip to complementary content

Analyzing customer feedback with Llama text summarization model

This Job reads customer feedback messages from a CSV file, uses the tOllamaClient component to generate AI-powered summaries and sentiment analysis, and outputs the enriched results to a new file.

Before you begin

Before running this Job, ensure you have:

Linking the components

Procedure

  1. Create a new Standard Job and add the following components by typing their names in the design workspace or dragging them from the Palette: tFileInputDelimited, tOllamaClient, and tLogRow.
  2. Connect tFileInputDelimited to tOllamaClient using a Row > FLOW connection.
  3. Connect tOllamaClient to tLogRow using a Row > FLOW connection.
    Job design showing tFileInputDelimited connected to tOllamaClient, which connects to tFileOutputDelimited.

Configuring the components

Procedure

  1. Double-click tFileInputDelimited to open its Component view.
  2. In the Basic settings tab, configure the following parameters:
    • In the File name/Stream field, select or enter the path to your sample file, for example "C:/temp/sample-customer-feedback.csv".
    • In the Row Separator field, keep the default value: "\n".
    • In the Field Separator field, change the default value to ",".
  3. Click Edit schema and define the following columns:
    • feedback_id (String)
    • customer_name (String)
    • feedback_text (String)
    • date_received (Date)
  4. Click OK to close the schema editor and OK to close the component view.
  5. Double-click tOllamaClient to open its Component view.
  6. In the Basic settings tab, configure the following parameters:
    • Click Sync columns to retrieve the schema from tFileInputDelimited.
    • In the Input column list, select: feedback_text.
    • In the Host field, enter: http://localhost:11434 (default Ollama host).
    • In the Model field, click the [...] button and select llama3.2 from the list.
    • In the Prompt field, enter the following instruction:
      Analyze this customer feedback and provide a concise summary in the following format:
      SENTIMENT: [Positive/Neutral/Negative]
      MAIN ISSUE: [Brief description]
      ACTION: [Recommended action]
      
      Keep the response under 100 words.
    tOllamaClient Basic settings showing Input column set to feedback_text, Host as localhost:11434, Model as llama3.2, and the analysis prompt.
  7. Double-click the tLogRow component to display its Component view.
    Click Sync columns to retrieve the schema from the previous component.
    In the Mode area, select Table to display the search results in a formatted table in the console.
  8. Click OK to close the component view.

Executing the Job

Procedure

  1. Press Ctrl+S to save the Job.
  2. Press F6 to execute the Job.

Results

The Job reads customer feedback from the input CSV file, sends each feedback message to the local Ollama Llama 3.2 model for analysis, and writes the enriched data (including AI-generated sentiment, issue identification, and recommended actions) to the console.

Run console showing successful execution with row count statistics for each component.
The output text contains the original feedback data plus the AI-generated analysis in the outputResult column, providing structured insights for each customer message.
Run console showing the new column populated with sentiment analysis.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!