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
Copy file name to clipboardExpand all lines: src/Plugin/ConversationalSearch/README.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,7 @@ Model with prompt, transport options, and retrieval settings:
101
101
```sql
102
102
CREATE CHAT MODEL support_assistant (
103
103
model='openai:gpt-4o-mini',
104
+
custom_prompt='You are a support assistant. Answer using the retrieved context and mention source ids.',
104
105
api_key='your-provider-api-key',
105
106
base_url='http://host.docker.internal:8787/v1',
106
107
timeout=60,
@@ -115,6 +116,7 @@ Common options:
115
116
|---|---:|---|
116
117
|`model`| Yes | LLM model id in `provider:model` format |
117
118
|`description`| No | Stored description |
119
+
|`custom_prompt`| No | Prompt instructions used to build the answer from the retrieved context and conversation history; if set, it must be non-empty and at most 32768 bytes |
118
120
|`api_key`| No | Provider API key passed to the `llm` extension |
119
121
|`base_url`| No | Provider or proxy base URL |
120
122
|`timeout`| No | LLM request timeout, `1..65536`|
@@ -124,6 +126,12 @@ Common options:
124
126
Model names in `CREATE CHAT MODEL` may contain letters, numbers, and
125
127
underscores only.
126
128
129
+
`custom_prompt` is optional. If it is omitted, Buddy uses its default answer
130
+
prompt. If it is set, it must contain non-whitespace text and must not exceed
131
+
32768 bytes. To make the LLM return source citations, include that instruction
132
+
in `custom_prompt`, for example: `Cite sources as [ref:<id>] using source row
133
+
ids from the context.`
134
+
127
135
`model` is validated as `provider:model`, for example:
128
136
129
137
```sql
@@ -251,9 +259,8 @@ The legacy JSON field name `fields` is accepted as an alias, but requests must
251
259
not include both `vector_field` and `fields`.
252
260
253
261
HTTP JSON conversation responses use the same logical columns as `CALL CHAT`:
0 commit comments