Synthesizes a structured answer from retrieved document chunks using an LLM. Provider-agnostic: supports Claude and OpenAI via environment configuration.
| Date | Fitness | Safety | Calls |
|---|---|---|---|
| Mar 17 | 0.6610 | 0.81 | 1 |
{
"type": "object",
"required": [
"question",
"chunks"
],
"properties": {
"chunks": {
"type": "array",
"items": {
"type": "object",
"required": [
"content",
"source"
],
"properties": {
"score": {
"type": "number"
},
"source": {
"type": "string"
},
"content": {
"type": "string"
}
}
},
"description": "Retrieved context chunks from doc-retrieval"
},
"provider": {
"type": "string",
"description": "LLM provider override: 'claude' or 'openai' (default from env ROTIFER_LLM_PROVIDER)"
},
"question": {
"type": "string",
"description": "Original user question"
}
}
} {
"type": "object",
"required": [
"answer",
"sources",
"confidence"
],
"properties": {
"answer": {
"type": "string"
},
"sources": {
"type": "array",
"items": {
"type": "string"
}
},
"confidence": {
"type": "number",
"description": "0-1 confidence score based on chunk relevance"
}
}
}