Example

Example of a Prompt Template for Semantic Similarity

A prompt template with multiple variables can be used for comparing the semantic similarity of two sentences. In this application, literal text is used to frame the distinct variables for each sentence. For example, a template might use 'Here is a sentence' and 'Here is another sentence' as static framing text, where the actual sentences for comparison would be inserted as variables.

0

1

Updated 2026-05-02

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences