Calculate Embeddings for Knowledge Base articles

<< Click to Display Table of Contents >>

Navigation:  KB Copilot in NITRO Helpdesk >

Calculate Embeddings for Knowledge Base articles

KB Copilot uses the concept of embeddings to provide more relevant response for the user queries.

An embedding is a numerical representation of a text or data that captures the semantic meaning of the text. This is calculated using generative AI services. Embeddings are pre-calculated for the KB articles and stored in a column in the KB list. When user enters their query in the copilot, embedding value is calculated for the user query. The embedding for the user query is matched with that of KB articles and then articles that match more closely with user query are ranked higher.

Using NITRO Workflows, we calculate the embedding for the Knowledge Base article content and store it for use with the copilot.

 

Configure NITRO Workflows

1.Calculate embedding when Knowledge Base articles created

a.Configure a workflow on knowledge base article creation

2.Calculate embedding when knowledge base article modified

a.Configure a workflow on item updated event

 

Workflow: Calculate embedding when Knowledge Base article is created

 

KnowledgeBaseCopilot-56

Action: Calculate Embeddings

Drag and drop ‘Calculate embeddings’ action as shown below

KnowledgeBaseCopilot-57

General Settings: provide action name, action description and delay execution.

Embeddings Settings:

AI Connection: This dropdown will show all AI connections configured in NITRO site settings. select the AI Connection as required.

Search Text Column(s): Select the column(s) for which embeddings has to be calculated. This will be the column where KB article text is stored.

Embeddings Column: Select the multi-line text column to store the embedding value.

MD5 Checksum Column: Select the single-line text column to store the checksum of the search text column(s). A checksum is used to detect changes in search content, and embedding is recalculated only if the content has changed.

 

When a knowledge base article is added, embeddings are calculated as shown below:

KnowledgeBaseCopilot-58

Configure ‘Update Embeddings value’ workflow on Knowledge base list Item Updated event

 

Workflow: Calculate embedding when Knowledge Base article is updated

Configure ‘calculate embedding’ action on item update event when ‘Wiki Content’ is modified. ‘Calculate Embedding’ action configuration is same as above.

Condition:

KnowledgeBaseCopilot-59