2 sections
FastAPI Request And Response Boundaries
An HTTP success code, a parsed request, a retrieved policy, and a correct answer are four different observations.
open drawer β---
~/cabinet/ai-security
Local AI engineering, keyword RAG, grounding, and bounded AI security study. Each drawer names its evidence and limits; course notes are not a substitute for a hands-on test.
2 sections
An HTTP success code, a parsed request, a retrieved policy, and a correct answer are four different observations.
open drawer β2 sections
Search a small local corpus by a separate phrase, count exact matches, and return the highest-scoring documentβnot a semantic nearest-neighbor search.
open drawer β2 sections
The model server and the application server are separate: FastAPI assembles a request, Ollama performs inference, and the application parses its response.
open drawer β3 sections
Decide what each step produces and who is accountable before deciding where an AI tool fits.
open drawer β3 sections
My course notes describe a browser-extension deployment and policy controls; they do **not** specify an API proxy architecture or prove coverage of every AI integration.
open drawer β2 sections
A plausible generated answer is not evidence that retrieval found the right source or that the model ever saw it.
open drawer β2 sections
Finding a relevant document answers a data question; it does not give that document authority to change the assistant's instructions.
open drawer β3 sections
Better answers often come from specifying the task and its evidence, not from pretending the model became smarter between prompts.
open drawer β3 sections
A polished answer is a candidate result. Before using it, compare it with the task, the source, and the standard the work must meet.
open drawer β