Search Docs…

Search Docs…

Orpheus API Reference

Execute Vector Function Query


POST Execute Vector Function Query


https://api.wisecube.ai/orpheus/graphql

BODY graphql

The API retrieves embeddings for the given entities.

QUERY

query($graphIds: [String!]) { executeVectorFunction(graphIds: $graphIds)  }

GRAPHQL VARIABLES

{
    "graphIds": [
    "Q84263196",
    "Q12078"
  ]
}

Example Request:

POST /orpheus/graphql HTTP/1.1 
Host: api.wisecube.ai 
Content-Type: application/json 
Content-Length: 1324 

{\"query\":\"query($graphIds: [String!]) { executeVectorFunction(graphIds: $graphIds)  \\n}\",\"variables\":{\"graphIds\":[\"Q84263196\",\"Q12078\"]}}

Example Response

{
    "data": {
        "executeVectorFunction": {
            "Q84263196": [
                -0.21022745966911316,
                0.027616778388619423,
                0.2884422838687897,
                -0.07390227913856506,
                0.28630444407463074,
                -0.32744479179382324,
                -0.22691451013088226,
                -0.5159900784492493,
                0.10547929257154465,
                0.14369025826454163,
                -0.26709818840026855,
               {...},
               {...}
            ],
            "Q12078": [
                -0.21675412356853485,
                -0.08692169189453125,
                -0.2831985652446747,
                0.11890576779842377,
                0.5308268666267395,
                -0.5189204812049866,
                0.5876939296722412,
                -0.01710917428135872,
                -0.06718169152736664,
                {...},
                {...}
            ]
        }
    }
}


Wisecube AI

© 2024