For the complete documentation index, see llms.txt. This page is also available as Markdown.

Parallel Score

Answers typed questions about anything on the web using Parallel's Decisions API, with the web sources it used. Needs a Parallel API key from platform.parallel.ai (PARALLEL_API_KEY). Parallel charges $0.001 per request, however many questions it carries.

Parallel Score Decision

What it is

Rate something on an ordered scale you define, using current web evidence from Parallel.

How it works

The block sends the context and its question to POST https://api.parallel.ai/v1/decisions. Parallel searches the web for current evidence about the context, answers from that evidence, and returns the answer with a list of citations (URL, title and the passages used). Citations cover the whole request; they are not tied to one answer. Parallel can decline to answer a question (a refusal); that is a normal result, not an error, and the block reports it separately rather than treating it as no, the first option or zero. HTTP failures, such as a bad API key, raise a block error. Cited passages are untrusted web text; treat them as data, not instructions. Give 2 to 10 ordered levels, lowest first, each describing the evidence that qualifies. The score is the probability-weighted average level, so it can be fractional (for example 1.7 on a 0 to 2 scale); max_score is the number of levels minus one, and probabilities gives each level's probability.

Inputs

Input
Description
Type
Required

context

Text or JSON describing what the question is about, e.g. {"company": "Clay", "website": "https://www.clay.com"}. Parallel searches the web for current evidence about it.

Context

No

include_excerpts

Return the evidence passages with each citation. Turn off to keep outputs small; the decision still uses the passages.

bool

No

question

What to rate, e.g. 'How well does Clay's CLI support company search and enrichment?'

str

Yes

levels

2 to 10 ordered level descriptions, lowest first. Describe the concrete evidence that qualifies for each level.

List[str]

Yes

Outputs

Output
Description
Type

error

Error message if the operation failed

str

citations

Web sources used as evidence for the whole request. They are not mapped to individual answers.

List[ParallelCitation]

decision_id

Parallel's ID for this request

str

score

Probability-weighted level, from 0 to max_score. Can be fractional, e.g. 1.7.

float

legend

Level numbers mapped to their descriptions.

Dict[str, str]

probabilities

Estimated probability of each level, keyed by level number.

Dict[str, float]

max_score

Highest possible score: number of levels minus one.

int

refused

True when Parallel declined to answer. Emitted only then.

bool

Possible use case

Lead scoring: Rate how well a company fits your ideal customer profile against levels you define.

Vendor assessment: Score how mature a vendor's security documentation is, from none published to a full trust centre.

Prioritisation: Rank opportunities by how strongly current news suggests they are ready to buy.


Last updated

Was this helpful?