SQL functions v7

AIDB functions are available as standalone SQL functions that you can call directly in queries for one-off transformations, testing and exploration, or to build custom workflows outside of the pipeline framework.

Each page here focuses on usage context and examples. For terse parameter tables and return types, see the API reference:

PageFunctionsWhat it covers
Chunkingaidb.chunk_text()Splitting text into segments for LLM context windows
Parsingaidb.parse_html(), aidb.parse_pdf()Extracting readable text from HTML and PDF inputs
OCRaidb.perform_ocr()Extracting text from images using an OCR-capable model
Summarizationaidb.summarize_text(), aidb.summarize_text_aggregate()Generating and aggregating AI-powered text summaries, use cases, and cookbook
Encoding and decodingaidb.encode_text(), aidb.decode_text(), and variantsEmbedding text and images into vectors; generating completions
Rerankingaidb.rerank_text()Scoring and reordering candidate passages by relevance
Note

To use these operations as steps inside a pipeline, see Pipeline steps.