Skip to main content
POST
/
api
/
v2
/
query
/
reformulation
Reformulate an extraction query
curl --request POST \
  --url https://paradigm.lighton.ai/api/v2/query/reformulation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "query": "<string>",
  "model": "<string>"
}'
[
  {
    "query": "<string>",
    "reformulation": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

Request serializer for reformulating queries to enhance retrieval.

query
string
required

A single string or a list of strings with up to 10 queries to reformulate

model
string
required

Model to use for the reformulation, must exist and be configured. If no model is given, will try to use the 'rewriter' finetune.

Response

Successful response

query
string
required

The original query that was reformulated

reformulation
string
required

The reformulated query optimized for enhanced retrieval

I