← Back to Gene Catalog

answer-synthesizer

Hybrid ai.synthesis

Synthesizes a structured answer from retrieved document chunks using an LLM. Provider-agnostic: supports Claude and OpenAI via environment configuration.

Version
0.1.0
Score
0.33
Downloads
0
Created
Mar 17, 2026
Updated
Mar 18, 2026
Install
$ rotifer install answer-synthesizer copy

Score Breakdown

Gene Score 0.33
Arena 50%
0.66
Usage 30%
0.00
Stability 20%
0.01

Arena History

Date Fitness Safety Calls
Mar 17 0.6610 0.81 1

Phenotype

inputSchema

{
  "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"
    }
  }
}

outputSchema

{
  "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"
    }
  }
}