import { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.search.graphrag.inspectGraphRAGStore({
storeName: "<value>",
xApiKeyId: "<id>",
xUserId: "<id>",
xExchangeJwtExternalUserId: "<id>",
});
console.log(result);
}
run();{
"counts": {
"entity_count": 123,
"edge_count": 123,
"chunk_count": 123
},
"entities": [
{
"entity_id": "<string>",
"name": "<string>",
"entity_type": "<string>",
"aliases": [
"<string>"
]
}
],
"edges": [
{
"edge_id": "<string>",
"subject": "<string>",
"predicate": "<string>",
"object": "<string>",
"evidence_chunk_ids": [
"<string>"
]
}
]
}import { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.search.graphrag.inspectGraphRAGStore({
storeName: "<value>",
xApiKeyId: "<id>",
xUserId: "<id>",
xExchangeJwtExternalUserId: "<id>",
});
console.log(result);
}
run();{
"counts": {
"entity_count": 123,
"edge_count": 123,
"chunk_count": 123
},
"entities": [
{
"entity_id": "<string>",
"name": "<string>",
"entity_type": "<string>",
"aliases": [
"<string>"
]
}
],
"edges": [
{
"edge_id": "<string>",
"subject": "<string>",
"predicate": "<string>",
"object": "<string>",
"evidence_chunk_ids": [
"<string>"
]
}
]
}Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Was this page helpful?