# findPreprintPassages

**Identifier:** `biorxiv_findPreprintPassages`

**Provider:** [bioRxiv and medRxiv](https://kirha.com/providers/biorxiv.md)

Find the passages of one or more bioRxiv or medRxiv preprints (up to 5 DOIs) that best match a question, ranked by keyword relevance (BM25). Use it to answer questions whose answer sits in the methods, results, tables or figure legends rather than the abstract. Matching is lexical: phrase the question with the terms the preprint would use (gene, drug, assay, cell line, numbers).

## Run it with the CLI

```bash
kirha tools run biorxiv_findPreprintPassages \
  --input '{
    "dois": [
      "10.1101/2024.05.03.592390"
    ],
    "question": "what concentration of doxycycline was used to induce expression"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "biorxiv_findPreprintPassages",
  "input": {
    "dois": [
      "10.1101/2024.05.03.592390"
    ],
    "question": "what concentration of doxycycline was used to induce expression"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "dois": {
      "items": {
        "description": "bioRxiv or medRxiv DOI, e.g. 10.1101/2024.05.03.592390 (doi: and doi.org forms accepted)",
        "minLength": 1,
        "type": "string"
      },
      "maxItems": 5,
      "minItems": 1,
      "type": "array"
    },
    "limit": {
      "default": 8,
      "maximum": 20,
      "minimum": 1,
      "type": "integer"
    },
    "question": {
      "description": "e.g. \"what concentration of doxycycline was used to induce expression\"",
      "minLength": 3,
      "type": "string"
    },
    "sections": {
      "description": "Search only sections whose heading contains one of these, or figures/tables by label, e.g. [\"methods\"], [\"fig\"]",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "dois",
    "question"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "passages": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "doi": {
            "type": "string"
          },
          "score": {
            "type": "number"
          },
          "section": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "doi",
          "section",
          "text",
          "score"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "preprints": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "doi": {
            "type": "string"
          },
          "server": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "version": {
            "type": "number"
          }
        },
        "required": [
          "doi",
          "server",
          "version"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "unavailable": {
      "description": "Requested DOIs whose full text could not be read",
      "items": {
        "additionalProperties": false,
        "properties": {
          "doi": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "doi",
          "reason"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "preprints",
    "passages"
  ],
  "type": "object"
}
```

## Related tools

Other bioRxiv and medRxiv tools that this tool refers to, or that refer to it.

- [`getPreprintFullText`](https://kirha.com/providers/biorxiv/getPreprintFullText.md)
- [`getPreprint`](https://kirha.com/providers/biorxiv/getPreprint.md)

-----

[All bioRxiv and medRxiv tools](https://kirha.com/providers/biorxiv.md) · [< Back to tools list](https://kirha.com/tools.md)