Flow 1: Ingest to Publish
- Create a collection via
POST /api/collections.
- Ingest source content via
POST /api/ingest/*.
- Generate chunks (
POST /api/session/:id/chunks) and edit/split/merge as needed.
- Preview (
POST /api/session/:id/preview) then publish (POST /api/session/:id/publish).
- Validate with
POST /api/search.
Flow 2: Maintain Existing Collection
- List collection chunks via
GET /api/collections/:id/chunks.
- Edit, split, merge, or reorder directly in the collection editor.
- (Optional) Use the Collection Agent for AI-assisted suggestions and cleaning.
- Validate with search queries.
Flow 3: Incident-style Validation
- Identify a missing or incorrect answer from the chat playground.
- Locate the relevant collection and chunk via search or the collection editor.
- Update chunk content via
PUT /api/collections/:id/chunks/:chunkId.
- Re-run the query to confirm the fix.