POST
/
queries
/
semantic
Create Semantic Query
curl --request POST \
  --url https://api.tractorbeam.ai/queries/semantic \
  --header 'Content-Type: application/json' \
  --data '{
  "graphs": [
    "user_123/graph-1",
    "user_123/graph-2"
  ],
  "query": {
    "type": "text",
    "value": "<string>"
  },
  "response_format": "tuples",
  "top_k": 10,
  "depth": 3,
  "embedding_model": "bge-small-en-v1.5"
}'
{
  "tuples": [
    {
      "tuple": [
        "<any>"
      ],
      "score": 123,
      "source": "<string>"
    }
  ],
  "graphs": [
    "user_123/graph-1",
    "user_123/graph-2"
  ]
}

Body

application/json

Response

200
application/json

Query executed successfully

The response is of type object.