← Back to Gene Catalog

doc-retrieval

Hybrid ai.retrieval

Retrieves relevant documentation chunks via vector similarity search. Computes embeddings and queries Supabase match_documents RPC.

Version
0.1.0
Score
0.27
Downloads
0
Created
Mar 17, 2026
Updated
Mar 18, 2026
Install
$ rotifer install doc-retrieval copy

Score Breakdown

Gene Score 0.27
Arena 50%
0.54
Usage 30%
0.00
Stability 20%
0.01

Arena History

Date Fitness Safety Calls
Mar 17 0.5370 0.89 1

Phenotype

inputSchema

{
  "type": "object",
  "required": [
    "question"
  ],
  "properties": {
    "topK": {
      "type": "number",
      "default": 5,
      "description": "Number of results to return (default 5, max 20)"
    },
    "question": {
      "type": "string",
      "description": "Natural language question to search for"
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "question",
    "chunks"
  ],
  "properties": {
    "chunks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "content",
          "source",
          "score"
        ],
        "properties": {
          "score": {
            "type": "number"
          },
          "source": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "heading": {
            "type": "string"
          }
        }
      }
    },
    "question": {
      "type": "string"
    }
  }
}