AI 原生 BaaS 平台 Supabase 版
参数 | 类型 | 默认值 | 说明 |
参数 | 类型 | 默认值 | 说明 |
question | text | 无 | 用户问题,不得为 SQL NULL。 |
source_schema | text | 无 | 知识表所在 schema。 |
source_table | text | 无 | 知识表名称。 |
chunk_col | text | 无 | 作为上下文的文本列。 |
vector_col | text | 无 | 用于检索的向量列。 |
topn | integer | 10 | 检索候选数,必须大于 0。 |
distance_type | text | cosine | cosine、l2、l1 或 negative。 |
embed_model | text | SQL NULL | embedding 模型;NULL 时使用 ai_embed 默认模型。 |
embed_args | jsonb | {} | 传给 embedding 阶段的请求体参数。 |
prompt_model | text | SQL NULL | 生成答案的 chat/LLM 模型;NULL 时使用 ai_query 默认模型。 |
prompt_args | jsonb | {} | 传给答案生成阶段的请求体参数。 |
rank_model | text | SQL NULL | 可选 rerank 模型;NULL 时尝试使用 ai_rank 默认模型。 |
rank_args | jsonb | {} | 传给 rerank 阶段的参数。 |