Saltar al contenido principal
POST
/
api
/
v1
/
search
/
graphrag
/
stores
Python (SDK)
from mka1 import SDK


with SDK(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:

    res = sdk.search.graphrag.create_graph_rag_store(store_name="vendor_network", embedding_model="auto", extraction_model="auto", chunk_size=800, chunk_overlap=120, max_hops=2)

    # Handle response
    print(res)
{
  "message": "GraphRAG store created successfully",
  "store_name": "vendor_network"
}

Documentation Index

Fetch the complete documentation index at: https://docs.mka1.com/llms.txt

Use this file to discover all available pages before exploring further.

Autorizaciones

Authorization
string
header
requerido

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>.

Encabezados

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Cuerpo

application/json
store_name
string
requerido

Nombre de la tienda GraphRAG

Minimum string length: 1
embedding_model
string
requerido

ID del modelo de incrustación

Minimum string length: 1
extraction_model
string
requerido

ID del modelo LLM utilizado para la extracción de entidades y relaciones

Minimum string length: 1
chunk_size
integer
predeterminado:800

Tamaño máximo de fragmento en caracteres

Rango requerido: 100 <= x <= 10000
chunk_overlap
integer
predeterminado:120

Superposición de fragmentos en caracteres

Rango requerido: 0 <= x <= 5000
max_hops
integer
predeterminado:2

Profundidad máxima de expansión de grafo durante consultas en modo grafo

Rango requerido: 1 <= x <= 4

Respuesta

Respuesta Exitosa

store_name
string
requerido
message
string
requerido