{
  "id": "bbg-p0388-search-retrieval-and-rag-search",
  "title": "Basic RAG Application on Cloud",
  "chapter": "search-retrieval-and-rag",
  "batch": "05",
  "rank": 46,
  "sourcePage": 388,
  "sourcePointer": "p. 388",
  "status": "accepted",
  "reviewerStatus": "reviewed",
  "fidelityScore": 0.9,
  "canvas": {
    "width": 960,
    "height": 640
  },
  "fireworksTechGraph": {
    "style": "style-1-flat-icon",
    "diagramType": "data-flow",
    "topologyNotes": [
      "source page render inspected",
      "extracted page text inspected",
      "source page render inspected",
      "preserve two-stage RAG app: ingestion from documents to chunks/embeddings/vector store, and querying from frontend through API function to retrieval and LLM answer",
      "omit vendor logos, source branding, and copied cloud-service names where generic labels are sufficient"
    ],
    "publicBoundary": [
      "original vector output",
      "no source pixels",
      "no source mark or long wording"
    ]
  },
  "callouts": [],
  "sourceReview": {
    "conceptAnchors": [
      "concept: raw documents",
      "concept: ingestion function",
      "concept: chunks",
      "concept: embedding model",
      "concept: vector database and LLM answer"
    ],
    "labelSource": "curated",
    "semanticStatus": "reviewed"
  },
  "groups": [
    {
      "id": "ingest",
      "label": "Ingestion stage",
      "x": 58,
      "y": 122,
      "w": 844,
      "h": 150
    },
    {
      "id": "query",
      "label": "Query stage",
      "x": 58,
      "y": 348,
      "w": 844,
      "h": 138
    }
  ],
  "shapes": [
    {
      "id": "docs",
      "kind": "rect",
      "label": "Documents",
      "detail": "PDF text",
      "x": 96,
      "y": 164,
      "w": 118,
      "h": 58,
      "tone": "blue"
    },
    {
      "id": "ingestFn",
      "kind": "hex",
      "label": "Ingest function",
      "detail": "clean split",
      "x": 280,
      "y": 154,
      "w": 126,
      "h": 78,
      "tone": "orange"
    },
    {
      "id": "embed",
      "kind": "hex",
      "label": "Embedding model",
      "detail": "vectors",
      "x": 474,
      "y": 154,
      "w": 126,
      "h": 78,
      "tone": "purple"
    },
    {
      "id": "vector",
      "kind": "cylinder",
      "label": "Vector store",
      "detail": "chunks metadata",
      "x": 682,
      "y": 150,
      "w": 126,
      "h": 82,
      "tone": "teal"
    },
    {
      "id": "user",
      "kind": "actor",
      "label": "User",
      "detail": "question",
      "x": 96,
      "y": 374,
      "w": 82,
      "h": 88,
      "tone": "blue"
    },
    {
      "id": "api",
      "kind": "gateway",
      "label": "API function",
      "detail": "query",
      "x": 280,
      "y": 374,
      "w": 126,
      "h": 80,
      "tone": "orange"
    },
    {
      "id": "retrieve",
      "kind": "rect",
      "label": "Retrieve chunks",
      "detail": "similarity",
      "x": 474,
      "y": 386,
      "w": 126,
      "h": 58,
      "tone": "green"
    },
    {
      "id": "llm",
      "kind": "hex",
      "label": "LLM",
      "detail": "answer",
      "x": 682,
      "y": 376,
      "w": 126,
      "h": 78,
      "tone": "purple"
    }
  ],
  "connectors": [
    {
      "from": "docs",
      "to": "ingestFn",
      "label": "new file",
      "flow": "main"
    },
    {
      "from": "ingestFn",
      "to": "embed",
      "label": "chunks",
      "flow": "data"
    },
    {
      "from": "embed",
      "to": "vector",
      "label": "store",
      "flow": "data"
    },
    {
      "from": "user",
      "to": "api",
      "label": "ask",
      "flow": "main"
    },
    {
      "from": "api",
      "to": "retrieve",
      "label": "embed query",
      "flow": "control"
    },
    {
      "from": "retrieve",
      "to": "vector",
      "label": "search",
      "flow": "data"
    },
    {
      "from": "retrieve",
      "to": "llm",
      "label": "context",
      "flow": "data"
    },
    {
      "from": "llm",
      "to": "api",
      "label": "response",
      "flow": "main"
    }
  ]
}
