import { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.search.graphrag.createGraphRAGStore({
xApiKeyId: "<id>",
xUserId: "<id>",
xExchangeJwtExternalUserId: "<id>",
createGraphRAGStoreRequest: {
storeName: "vendor_network",
embeddingModel: "meetkai:qwen3-embedding-8b",
extractionModel: "openai:gpt-4.1-mini",
},
});
console.log(result);
}
run();{
"message": "GraphRAG store created successfully",
"store_name": "vendor_network"
}import { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.search.graphrag.createGraphRAGStore({
xApiKeyId: "<id>",
xUserId: "<id>",
xExchangeJwtExternalUserId: "<id>",
createGraphRAGStoreRequest: {
storeName: "vendor_network",
embeddingModel: "meetkai:qwen3-embedding-8b",
extractionModel: "openai:gpt-4.1-mini",
},
});
console.log(result);
}
run();{
"message": "GraphRAG store created successfully",
"store_name": "vendor_network"
}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>.
GraphRAG store name
1Embedding model ID
1LLM model ID used for entity and relation extraction
1Maximum chunk size in characters
100 <= x <= 10000Chunk overlap in characters
0 <= x <= 5000Maximum graph expansion depth during graph-mode queries
1 <= x <= 4Was this page helpful?