Skip to content

Commit 836e259

Browse files
committed
Update README to reflect VECTOR type
1 parent d0894df commit 836e259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ uv run databend-aiserver --port 8815
1414
| Function | Signature | Purpose | Output |
1515
| :--- | :--- | :--- | :--- |
1616
| **ai_list_files** | `(stage_location, max_files)` | List objects in a stage for inspection/sampling. | Table with file details (`path`, `size`, etc.) |
17-
| **ai_embed_1024** | `(text)` | Generate 1024-dim embeddings (default: Qwen). | `ARRAY(FLOAT NULL)` |
17+
| **ai_embed_1024** | `(text)` | Generate 1024-dim embeddings (default: Qwen). | `VECTOR(1024)` |
1818
| **ai_parse_document** | `(stage_location, path)` | Parse docs (PDF, DOCX, Images, etc.) to Markdown. | `VARIANT` (pages, metadata) |
1919

2020
## Usage
@@ -27,7 +27,7 @@ RETURNS TABLE (stage_name VARCHAR, relative_path VARCHAR, path VARCHAR, is_dir B
2727
LANGUAGE PYTHON HANDLER = 'ai_list_files' ADDRESS = '<your-ai-server-address>';
2828

2929
CREATE OR REPLACE FUNCTION ai_embed_1024(VARCHAR)
30-
RETURNS ARRAY(FLOAT NULL)
30+
RETURNS VECTOR(1024)
3131
LANGUAGE PYTHON HANDLER = 'ai_embed_1024' ADDRESS = '<your-ai-server-address>';
3232

3333
CREATE OR REPLACE FUNCTION ai_parse_document(stage_location STAGE_LOCATION, path VARCHAR)

0 commit comments

Comments
 (0)