Skip to main content

RugBrain API 🟑 Beta

HTTP faΓ§ade (FastAPI) over the retrieval core.

POST /v1/query​

{
"query": "flash loan attack defenses",
"top_k": 5,
"filters": {"ecosystem": "evm", "category": "defi"}
}

Response:

{
"hits": [
{
"score": 0.87,
"text": "...",
"source": "corpus/aave-v3-flashloan.md#L40",
"category": "defi"
}
]
}

POST /v1/ingest​

Stream a document into the index (async job id returned).

GET /healthz​

Qdrant + embedding endpoint connectivity.