﻿# Capstone Project — Almog Nachshon

## Operations Runbook Search

Build a service that answers questions about a system and links to relevant operating procedures. Use synthetic or public documents. Run every part locally and use mock answers until you connect a model.

1. **Infrastructure.** Define an API with GET /health and POST /ask. Test input schema validation and answers without supporting sources. Build a Docker image, run it as a non-root user, and add CI that runs tests and builds the image.
2. **Retrieval.** Write at least five short runbooks. Split them into chunks with stable IDs. Compare keyword search with semantic search or with a different chunking approach.
3. **Evaluation.** Collect 20 questions with expected sources, including unanswerable questions. Report Recall@3 on questions with expected sources, the percentage of answers supported by their sources, and p95 response time. Define passing criteria in advance.
4. **Operations.** Deploy a stable version to a local cluster. Record a trace ID, error rate, and response time. Deploy a demo version with a faulty readiness check, diagnose the problem, and roll back to the working version. Record detection and recovery times.
5. **Presentation.** Add the code and README to your portfolio. Include operating and testing instructions, an architecture diagram, an evaluation table, an incident summary, and a 2–3 minute demo. Explain your retrieval choices and when you would change them.

## Suggested Structure

- app/ — API, retrieval, and response handling
- docs/ — example runbooks
- evals/ — questions, attribution metrics, and results
- deploy/ — Deployment, Service, and readiness checks
- README.md — setup, architecture, and results

## Interview Practice Questions

- How would you tell whether the model or retrieval is causing latency?
- When should the system say it has insufficient information, and how would you measure that behavior?
- How would you reproduce the version shown in a demo after the data and model changed?
- What signal should stop a rollout, and how would you confirm recovery?

