Skip to content

Conversation

@lukekim
Copy link
Contributor

@lukekim lukekim commented Oct 1, 2025

This pull request adds comprehensive documentation for the new AI SQL functions, specifically the ai() and embed() functions, which allow direct integration of large language models (LLMs) and embedding models within SQL queries. It updates several documentation sections to reference and explain these functions, including configuration, usage, and examples.

Major documentation additions and updates:

1. New AI SQL Functions Documentation

  • Added a new reference page ai.md detailing the ai() function for LLM text generation and the embed() function for vector embeddings, including arguments, behavior, configuration, limits, and multiple usage examples.

2. SQL Reference Updates

  • Updated the SQL reference index to include links to the new AI functions documentation and their subsections.
  • Changed the scalar functions documentation to reference the new AI functions page and added a detailed section for the ai() function, including usage, arguments, concurrency, limits, and configuration. [1] [2]

3. Feature and Model Documentation Enhancements

  • Updated the LLM features documentation to highlight SQL integration via the ai() function.
  • Added mention of invoking LLMs from SQL queries using the ai() function in the Spicepod models reference.

@lukekim lukekim self-assigned this Oct 1, 2025
@github-actions
Copy link

github-actions bot commented Oct 1, 2025

✅ Pull with Spice Passed

Passing checks:

  • ✅ Title meets minimum length requirement (10 characters)
  • ✅ Has at least one of the required labels: area/blog, area/docs, area/cookbook, dependencies
  • ✅ No banned labels detected
  • ✅ Has at least one assignee: lukekim

@github-actions
Copy link

github-actions bot commented Oct 1, 2025

🚀 deployed to https://7581cd35.spiceai-org-website.pages.dev

@github-actions
Copy link

github-actions bot commented Oct 1, 2025

🚀 deployed to https://f0051c7f.spiceai-org-website.pages.dev

@lukekim lukekim merged commit 3886c0c into release/1.8 Oct 3, 2025
3 checks passed
@lukekim lukekim deleted the lukim/ai branch October 3, 2025 18:50
phillipleblanc added a commit that referenced this pull request Oct 7, 2025
* Tweak formatting

* S3 vectors partitioning docs (#1175)

* add vector partition docs

* fix spelling

* beautiful language

* Add ai functions to docs and SQL reference (#1174)

* Add ai functions

* Formatting

* update docs for search UX changes (#1159)

Co-authored-by: Luke Kim <80174+lukekim@users.noreply.github.com>
Co-authored-by: Evgenii Khramkov <evgenii@spice.ai>

* Document new write capabilities (SQL INSERT INTO) (#1173)

* Document new write capabilities (SQL INSERT INTO)

* Update

* writable->write

* Update website/docs/tags.yml

---------

Co-authored-by: Evgenii Khramkov <evgenii@spice.ai>

* Update cookbook index

---------

Co-authored-by: Luke Kim <80174+lukekim@users.noreply.github.com>
Co-authored-by: Kevin Zimmerman <4733573+kczimm@users.noreply.github.com>
Co-authored-by: Jack Eadie <jack@spice.ai>
Co-authored-by: Sergei Grebnov <sergei.grebnov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants