Skip to content

Research Mode (RLM)

The RLM Research Engine is an AI agent that autonomously explores the knowledge graph, searches academic databases, ingests papers, and synthesizes a cited answer.

POST /api/v1/knowledge/research/query

Returns a Server-Sent Events (SSE) stream of steps.

Terminal window
curl -N -X POST -H "X-API-Key: $KEY" \
-H "Content-Type: application/json" \
"https://api.marc27.com/api/v1/knowledge/research/query" \
-d '{"question": "What materials resist erosion in rocket nozzles?", "depth": 1}'
DepthCostWhat it does
0FreeLocal graph + vector search only
1$0.01+ Web search (Semantic Scholar, arXiv, PubMed)
2$0.05+ Deep search, follows new entities
3$0.10+ Cross-referencing and validation
ToolWhat it does
graph_searchFulltext search on entity names
get_neighbors1-hop graph traversal
vector_searchSemantic similarity search
property_searchFind materials by property (e.g., yield strength)
web_searchSemantic Scholar + arXiv + PubMed (depth >= 1)
ingest_paperExtract entities from a paper into the graph (depth >= 1)
compute_runSubmit DFT/ML job (MACE, QE, LAMMPS)
synthesizeGenerate final answer with citations
data: {"step": "reasoning", "data": {"turn": 0, "text": "I'll start with vector search..."}}
data: {"step": "tool_call", "data": {"tool": "vector_search", "query": "nozzle erosion"}}
data: {"step": "tool_result", "data": {"count": 5, "tool": "vector_search"}}
data: {"step": "answer", "data": {"text": "Based on the analysis..."}}
data: {"step": "complete", "data": {"metrics": {"graph_queries": 5, "cost_usd": 0.01}}}
Terminal window
prism query --platform --semantic "What materials resist nozzle erosion?"