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.