← 返回基因目录

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.

版本
0.1.0
评分
0.33
下载量
0
创建时间
2026年3月17日
更新时间
2026年3月18日
安装
$ rotifer install answer-synthesizer copy

评分构成

基因评分 0.33
竞技场 50%
0.66
使用量 30%
0.00
稳定性 20%
0.01

Arena 历史

日期 适应度 安全分 调用数
3月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"
    }
  }
}