Functions
Functions available in the query language.
character_count
character_count(text)Returns the number of characters in a text column.
Aliases
num_chars
greater_than
Computes the element-wise greater than comparison of two columns. input1 > input2
Aliases
gt
greater_than_or_equal_to
Computes the element-wise greater than or equal to comparison of two columns. input1 >= input2
Aliases
gte
less_than_or_equal_to
Computes the element-wise less than or equal to comparison of two columns. input1 <= input2
Aliases
lte
llm_answer_groundedness
Classifies whether the generated answer is grounded in and supported by the provided context.
llm_answer_groundedness_with_justification
Classifies whether the generated answer is grounded in and supported by the provided context.
llm_answer_refusal_with_justification
Classifies whether the model refused to answer the user's question.
llm_answer_relevancy
Classifies whether the generated answer is relevant and responsive to the user's question.
Aliases
rag_answer_relevancy
llm_answer_relevancy_with_justification
Classifies whether the generated answer is relevant and responsive to the user's question.
llm_classify_with_justification
Classifies text into custom categories you define, using your own prompt and labels.
llm_context_relevancy_with_justification
Classifies whether the retrieved context is relevant to the user's question.
llm_conversation_summary
Generates a concise summary of a full conversation session between an AI assistant and a user.
llm_question_clarity
Scores how clear and well-formed a question is, from 1 (ambiguous or incoherent) to 5 (perfectly clear).
llm_question_clarity_with_justification
Scores how clear and well-formed a question is, from 1 (ambiguous or incoherent) to 5 (perfectly clear).
llm_summarization
Generates a concise summary of a single conversational exchange (input and output).
llm_text_frustration
Scores the level of user frustration expressed in a text, from 1 (not frustrated) to 5 (extremely frustrated).
llm_text_frustration_with_justification
Scores the level of user frustration expressed in a text, from 1 (not frustrated) to 5 (extremely frustrated).
llm_text_sentiment
Classifies the overall sentiment of a text as positive, negative, or neutral.
Aliases
text_sentiment
llm_text_sentiment_with_justification
Classifies the overall sentiment of a text as positive, negative, or neutral.
llm_text_similarity
Scores how semantically similar an output is to a target reference, from 1 (completely different) to 5 (equivalent).
Aliases
text_similarity
llm_text_similarity_with_justification
Scores how semantically similar an output is to a target reference, from 1 (completely different) to 5 (equivalent).
llm_text_toxicity
Scores how toxic or harmful a piece of text is, from 1 (not toxic) to 5 (highly toxic).
llm_text_toxicity_with_justification
Scores how toxic or harmful a piece of text is, from 1 (not toxic) to 5 (highly toxic).
llm_user_frustration
Scores the overall user frustration across a conversation session, from 1 (satisfied) to 5 (extremely frustrated).
llm_user_frustration_with_justification
Scores the overall user frustration across a conversation session, from 1 (satisfied) to 5 (extremely frustrated).