You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generates a full-text completion based on input, with optional configuration provided as a comma-separated list of key=value pairs.
617
617
618
-
**Example:**
618
+
When a vision model is loaded via `llm_vision_load()`, you can pass one or more images as additional arguments. Images can be file paths (TEXT) or raw image data (BLOB). Supported image formats: JPG, PNG, BMP, GIF.
619
+
620
+
**Examples:**
619
621
620
622
```sql
623
+
-- Text-only generation
621
624
SELECT llm_text_generate('Once upon a time', 'n_predict=1024');
625
+
626
+
-- Vision: describe an image
627
+
SELECT llm_text_generate('Describe this image', './photos/cat.jpg');
628
+
629
+
-- Vision: compare multiple images
630
+
SELECT llm_text_generate('What is different between these images?', './img1.jpg', './img2.jpg');
631
+
632
+
-- Vision: image from BLOB column
633
+
SELECT llm_text_generate('What do you see?', image_data) FROM photos WHERE id =1;
Generates a context-aware reply using chat memory, returned as a single, complete response.
709
721
For a streaming model reply, use the llm_chat virtual table.
710
722
711
-
**Example:**
723
+
When a vision model is loaded via `llm_vision_load()`, you can pass one or more images as additional arguments. Images can be file paths (TEXT) or raw image data (BLOB). Supported image formats: JPG, PNG, BMP, GIF.
724
+
725
+
**Examples:**
712
726
713
727
```sql
728
+
-- Text-only chat
714
729
SELECT llm_chat_respond('What are the most visited cities in Italy?');
730
+
731
+
-- Vision: ask about an image
732
+
SELECT llm_chat_respond('What is in this photo?', './photos/landscape.jpg');
733
+
734
+
-- Vision: multiple images
735
+
SELECT llm_chat_respond('Compare these two charts', './chart1.png', './chart2.png');
Loads a multimodal projector (mmproj) model for vision capabilities. This requires a text model to already be loaded via `llm_model_load()`. The mmproj file is a separate GGUF file that contains the vision encoder and projector weights.
767
+
768
+
Once loaded, vision capabilities are available through `llm_text_generate()` and `llm_chat_respond()` by passing image arguments.
***Supports any GGUF model**: available on Huggingface; Qwen, Gemma, Llama, DeepSeek and more
15
16
16
-
SQLite-AI supports **text embedding generation** for search and classification, a **chat-like interface with history and token streaming**, **automatic context save and restore** across sessions, and **audio transcription** via Whisper models — making it ideal for building conversational agents, memory-aware assistants, and voice-enabled applications.
17
+
SQLite-AI supports **text embedding generation** for search and classification, a **chat-like interface with history and token streaming**, **automatic context save and restore** across sessions, **audio transcription** via Whisper models, and **vision/multimodal** image understanding — making it ideal for building conversational agents, memory-aware assistants, and voice-enabled applications.
0 commit comments