isEmbeddingPresentInPrompt

Checks if a specific embedding is present in the given prompt.

This function splits the prompt into individual keywords and checks if the specified embedding is present among these keywords.

Return

Boolean value indicating whether the embedding is present (true) or not (false) in the prompt.

Parameters

prompt

The input prompt string to search within. It's expected to be a comma or space-separated list of keywords.

embedding

The specific embedding string to search for in the prompt.