NOVAAIGet started

NOVA Documentation

REST API

On this page

The NOVA FastAPI service accepts numeric feature vectors and exposes model metadata, prediction traces, training, feedback, and memory management.

NOVA includes an asynchronous ASGI FastAPI server capable of serving local models with real-time telemetry inspection.

9.1 Starting the Server

powershell
# From the project root:
python -m nova.serving.app

The server binds to http://127.0.0.1:8000. Interactive OpenAPI documentation is accessible at http://127.0.0.1:8000/docs.

9.2 API Endpoints Specification

Method Endpoint Description Request Body Response
GET /health Service health & version check None {"status": "healthy", "service": "nova-serving-engine", "version": "0.1.0"}
GET /v1/model/info Architecture specifications None Architecture name, input/state/memory dimensions, capacity
POST /predict Deterministic inference {"features": [0.1, ...], "return_trace": true} Prediction array, novelty, uncertainty, compute action
POST /feedback Calibrate uncertainty from error {"prediction": [0.5], "ground_truth": [0.48]} Calibration acknowledgement & error residual
POST /train_step Online ECAL adaptive update {"features": [...], "target": [...]} Loss, step novelty, gradient conflict, updated status
GET /memory Inspect all DRM memory units None Total memory records, IDs, utilities, confidences
POST /memory Write transactional DRM record {"key": [...], "value": [...], "confidence": 0.9} Commit status, record ID, Knapsack compliance
DELETE /memory/{record_id} Explicitly evict memory unit None Eviction status confirmation
GET /metrics Server performance telemetry None Request counts, average latency, throughput

Make a prediction

REST request and failure paths
  1. Start the local serviceConfirm health and check the OpenAPI document for your installed routes and schemas.
  2. Get model metadataUse the model information endpoint to verify the required feature dimension.
  3. Submit and validateSend the documented JSON payload to the prediction route.
    • Valid requestRun inference and return the prediction plus trace fields when requested.
    • Request failsUse the returned error to check the path, feature shape, and JSON schema before retrying.

Check /v1/model/info for the expected feature dimension. This example uses the eight-feature shape in the SDK examples.

shell
curl -X POST http://127.0.0.1:8000/predict \
  -H "Content-Type: application/json" \
  -d '{"features":[0.25,-0.8,0.45,0.1,-0.6,0.35,-0.15,0.9],"return_trace":true}'

Training, feedback, memory writes, and deletion may change server state.

Website choices

Read the Terms and Conditions and Privacy Policy. The site includes research information and illustrative results.