Admin Panel

System status, diagnostics, and API documentation for the Biomedical Retrieval engine.

Engine: Python fallback 0 documents searches 6 sessions
0
Documents Indexed
Total Searches
6
Active Sessions
Demo Loads
Admin Actions
API Call Statistics
EndpointCalls
/ 5
/admin 1
System Info
Enginepython-fallback
Native AvailableNo
Server Port7741
Started At
Total Bytes Processed
API Documentation & curl Examples
GET /api/status
Returns system status, engine version, document count, and session stats.
curl http://localhost:7741/api/status
GET /api/corpus
List all indexed documents. Optional query params: domain, evidence.
curl http://localhost:7741/api/corpus
curl "http://localhost:7741/api/corpus?domain=oncology"
curl "http://localhost:7741/api/corpus?evidence=rct"
GET /api/doc/<doc_id>
Retrieve a single document by its ID.
curl http://localhost:7741/api/doc/1
POST /api/index
Index a new document. Send JSON with title, abstract, and optional fields.
curl -X POST http://localhost:7741/api/index \
  -H "Content-Type: application/json" \
  -d '{"title":"My Paper","abstract":"Study of...","domain":"oncology","evidence":"rct","authors":"Smith J","journal":"Nature","year":2024}'
POST /search
Search the corpus. Form-encoded or JSON with query, optional max_results, domain, evidence, year_min, year_max.
curl -X POST http://localhost:7741/search \
  -d "query=BRCA1+breast+cancer&max_results=5"

curl -X POST http://localhost:7741/search \
  -d "query=COVID+vaccine&domain=infectious_disease&max_results=10"
POST /load-demo
Load the built-in demo corpus of 20 biomedical abstracts.
curl -X POST http://localhost:7741/load-demo
POST /api/reset
Reset the index, clearing all indexed documents and search history.
curl -X POST http://localhost:7741/api/reset
GET /api/preset-queries
Retrieve the list of preset biomedical search queries.
curl http://localhost:7741/api/preset-queries
GET /api/history
Retrieve global search history as JSON.
curl http://localhost:7741/api/history