AI Functions

Using SQL-based AI Functions for Knowledge Base Search and Text Completion

This document demonstrates how to leverage PlaidCloud Lakehouse's built-in AI functions for creating document embeddings, searching for similar documents, and generating text completions based on context.


AI_EMBEDDING_VECTOR

Creating embeddings using the ai_embedding_vector function in PlaidCloud Lakehouse

AI_TEXT_COMPLETION

Generating text completions using the ai_text_completion function in PlaidCloud Lakehouse

AI_TO_SQL

COSINE_DISTANCE

Measuring similarity using the cosine_distance function in PlaidCloud Lakehouse

Last modified April 22, 2024 at 6:20 PM EST: adding hash functions (f177d8d)