SQL functions

SQL functions#

AIDBファンクションは、スタンドアロンSQLファンクションとして利用でき、1回限りの変換、テスト、探索のためにクエリで直接呼び出すことができ、またはパイプラインフレームワークの外部でカスタムワークフローを構築できます。

ここでの各ページは、使用状況と例に焦点を当てています。簡潔なパラメーターテーブルと戻り型については、APIリファレンスを参照してください。

  • 変換ファンクションchunk_text 、parse_html 、parse_pdf 、perform_ocr 、summarize_text は Functions reference

  • 推論ファンクション encode_text 、decode_text 、rerank_text は Reference → Models にあります。

Page

Functions

What it covers

Text chunking

aidb.chunk_text()

Splitting text into segments for LLM context windows

Data parsing

aidb.parse_html(), aidb.parse_pdf()

Extracting readable text from HTML and PDF inputs

Performing OCR

aidb.perform_ocr()

Extracting text from images using an OCR-capable model

Summarization cookbook

aidb.summarize_text(), aidb.summarize_text_aggregate()

Generating and aggregating AI-powered text summaries, use cases, and cookbook

AI inference functions

aidb.encode_text(), aidb.decode_text(), and variants

Embedding text and images into vectors; generating completions

Text reranking

aidb.rerank_text()

Scoring and reordering candidate passages by relevance

!!!注 これらの操作をパイプライン内のステップとして使用するには、 Pipeline steps を参照してください。