Retrieval Service | Kamiwaza Docs

Documentation for Kamiwaza 1.0.1

This is documentation for Kamiwaza 1.0.1, which is no longer actively maintained. For the current GA release, see 1.0.1.

Version: 1.0.1

Retrieval Service Overview

The retrieval service exposes a job-based API for accessing dataset content. It supports inline responses for small datasets, server-sent events (SSE) for streaming, and gRPC for high-throughput consumers.

Supported Sources

Retrieval adapters cover these data sources:

Core Workflow

  1. Create a retrieval job
  2. Poll job status (optional for streaming or gRPC)
  3. Stream results (SSE) or connect via gRPC

Create a Job

POST /api/retrieval/jobs

Key fields:

Get Job Status

GET /api/retrieval/jobs/{job_id}

Returns status, progress, and dataset metadata. If the job uses gRPC, the response includes a short-lived token and endpoint.

Stream Results (SSE)

GET /api/retrieval/jobs/{job_id}/stream

Streams data as text/event-stream chunks. Use this for larger datasets or when you need progressive delivery.

gRPC Transport

If a job response includes a grpc block, use the token and endpoint with the retrieval gRPC service:

The gRPC stream returns data chunks with metadata and a terminal marker.

Access Control

Retrieval requests are authorized against the dataset URN. Users must have viewer (or higher) access to the dataset to create or view jobs.

Notes