ConductScience Sequences
Contents

Installation guide · Optional features

Claim suggestions from a model

Name a language model for claim suggestions in a case's Review step.

A case's Review step can ask a language model for claim features the rules missed: SEQ ID references, identity thresholds, fragment lengths, residue ranges and written-out sequences. Suggestions are off until you name a model and, with sign-in on, until each account turns them on (see Accounts and spending limits). Each one names the model and the exact characters it came from, and counts only once someone accepts it. The button that asks reads "(Pilot)".

Run the model on a server you control, behind a server that takes chat completions calls, such as vLLM, llama.cpp's server or Ollama, and set:

BIOSEQUENCE_CLAIMS_MODEL_URL=http://127.0.0.1:8000/v1/chat/completions
BIOSEQUENCE_CLAIMS_MODEL_API=openai-chat
BIOSEQUENCE_CLAIMS_MODEL=your-model-name

The service uses the address as written, so give the whole path. With sign-in on, 127.0.0.1 is the container itself: start the model's container with --network container:sequences, which shares that address, or name the model's host in BIOSEQUENCE_CLAIMS_MODEL_HOSTS and serve it over HTTPS. At start the log names the model, where it runs, the format, how the service asks it (BIOSEQUENCE_MODEL_PATHS) and, with round-1, the reasoning effort when it is set and JSON mode when it is off, and how long the service waits for it, and never the key.

The model receives the case's claims, the features the rules found in each, and, when the claims came from a publication's XML, up to 40 paragraphs of its description, 60,000 characters at most, that cite a SEQ ID NO the claims name or define a term the claims use. It is asked for JSON, in at most 8,192 answer tokens. With openai-chat the call also asks for JSON mode, unless BIOSEQUENCE_CLAIMS_MODEL_JSON_MODE is off, and sends BIOSEQUENCE_CLAIMS_MODEL_REASONING, when it is set, as the reasoning effort. The service reads the JSON after any reasoning the model writes before it. A suggestion stays only when its quote is in its claim and, for a length or a range, names amino acids, residues, nucleotides, bases or positions, or for an identity, identity, homology, similarity or a percent. A length whose quote gives only positions, or a range whose quote gives only a length or names single residues or changes, is dropped, and so is a complement whose quote names no complement, other strand, hybridizing or base pairing, and a written-out sequence whose quote is a SEQ ID reference or writes out no sequence. A length takes its bounds from the claim's words where they set them, so "is 9 amino acids in length" is 9 and no more. Other details stay only when each number in them is written in that quote, and a quote from the description stays only when it is in the paragraph it names. When one fails, the suggestion stays without it, and the reason is recorded.

With BIOSEQUENCE_MODEL_PATHS at round-2, the default, fixed rules first flag spans in each claim that may be features, and the model gets each claim with its flagged spans and the words of the claims it depends on. The call asks for at most 8,192 answer tokens at temperature 0, with no JSON mode and no reasoning effort. Each suggestion takes a confidence from 0 to 1: the model's own figure, raised a little when a flagged span agrees or its details check out. A suggestion under 0.65 is dropped, and so is one that overlaps an earlier suggestion of its kind, a SEQ ID reference whose SEQ ID NOs the claim's features all name already, a CDR whose quote names no CDR, a fusion whose quote names no fusion, conjugate, linker, scFv, chimeric or multi-domain construct, and a complement in a claim that names no SEQ ID NO. The checks above apply too, except that a range or a length may be a named part of a peptide, such as Aβ1-14, and a written-out sequence may be a formula with X positions or a cyclic peptide. With round-1, the service asks as releases before 0.145.0 did.

A model that runs on processors alone can take minutes for one case, so with openai-chat the service waits up to 900 seconds unless BIOSEQUENCE_CLAIMS_MODEL_SECONDS says otherwise. The call runs in the background: the page shows how long it has been asking, and people keep working on the case. The service makes one call at a time. While one runs, a request from any other case is refused with a message to ask again in a few minutes.

Each call is recorded in its case, whether it brings suggestions or fails: the request as sent and its SHA-256, the model's answer up to 1,000,000 characters, how long the call took, and each suggestion kept or dropped with the reason. The case's log holds the same record. A key, if you set one, goes only in the Authorization header and is never recorded.

Guide version 1.63.0 · For Sequences 0.155.0