POST
/
query
/
project
curl --request POST \
  --url https://api.liquidindex.dev/query/project \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "project_id": "<string>",
  "query": "<string>",
  "top_k": 5
}'
[
  {
    "score": 123,
    "content": "<string>",
    "metadata": {
      "id": "<string>",
      "file": "<string>",
      "source": "<string>",
      "type": "<string>"
    }
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
project_id
string
required

The Project ID to query from

query
string
required

The input text used to find similar matches

top_k
integer
default:5

Number of matches to return

Response

200
application/json
Successful query response
score
number
required

Similarity score of the matched content

content
string
required

The matched content

metadata
object
required

Additional information about the matched content