ragflow_openai_chat_completion
Send OpenAI-style messages or a question to a RAGFlow chat assistant and retrieve its answer, optionally with source chunks, without storing a session.
Instructions
Ask a chat assistant through its OpenAI-compatible endpoint; no session is stored.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>"
},
"name": "ragflow_openai_chat_completion"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Chat assistant ID | |
| messages | No | OpenAI-style messages [{role, content}], last one from the user | |
| question | No | Shortcut for a single user message | |
| max_tokens | No | ||
| temperature | No | ||
| include_reference | No | Return the chunks the answer used | |
| metadata_condition | No | Metadata filter for retrieval |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||