EP230: RAG vs Agentic RAG
Retrieval-Augmented Generation (RAG) is a technique that couples an information retrieval system with a large language model to generate context-grounded answers. Traditional RAG relies on a fixed, predefined retrieval step whose output quality is constrained by the initial context retrieved. In contrast, Agentic RAG uses an iterative agent that selects tools, retrieves data, evaluates evidence sufficiency, and refines searches before generating the final response. OAuth 2.0 is an authorization protocol that allows third-party applications like Slack to access protected resources like Google Calendar without exposing user credentials. During an OAuth flow, users authenticate with the authorization server, which issues an authorization code that is exchanged for an access token. OpenID Connect (OIDC) serves as an authentication layer built directly on top of OAuth 2.0. While OAuth governs resource permissions, OIDC determines identity by issuing a signed JWT ID token indicating who signed in. The Linux filesystem follows a hierarchical directory structure beginning at the root directory "/". Core system components like the kernel and bootloader are kept in "boot", while device-related files reside in "dev". Essential user binaries, libraries, and installed software are organized across "bin", "sbin", "usr", and "lib", with administrative configurations stored in "etc" and dynamic data like logs stored in "var". Additionally, user profiles reside in "home", and external storage devices are managed via mount points like "media".
Read the original ↗Contents
RAG vs Agentic RAG
Retrieval-Augmented Generation (RAG) is a technique that couples an information retrieval system with a large language model to generate context-grounded answers. Traditional RAG relies on a fixed, predefined retrieval step whose output quality is constrained by the initial context retrieved. In contrast, Agentic RAG uses an iterative agent that selects tools, retrieves data, evaluates evidence sufficiency, and refines searches before generating the final response.
- RAG combines an information retrieval system with an LLM using a predefined retrieval process to augment prompts.
- The quality of standard RAG output depends directly on the accuracy of the context retrieved in its single pass.
- Agentic RAG iteratively retrieves and evaluates evidence rather than relying on a single retrieval step.
- An agent in Agentic RAG dynamically chooses tools to search documents, APIs, databases, or the web based on the task.
- Agentic RAG continues searching and adjusting tools until sufficient evidence is verified before invoking the LLM for answer generation.
OAuth (authorization) + OIDC (authentication layer)
OAuth 2.0 is an authorization protocol that allows third-party applications like Slack to access protected resources like Google Calendar without exposing user credentials. During an OAuth flow, users authenticate with the authorization server, which issues an authorization code that is exchanged for an access token. OpenID Connect (OIDC) serves as an authentication layer built directly on top of OAuth 2.0. While OAuth governs resource permissions, OIDC determines identity by issuing a signed JWT ID token indicating who signed in.
- OAuth 2.0 handles authorization, granting applications access to protected resources without exposing the user's password.
- Under OAuth 2.0, an authorization server issues an authorization code, which is then exchanged for an access_token.
- OIDC sits on top of OAuth 2.0 to handle authentication rather than just authorization.
- OAuth determines what resources a client can access, whereas OIDC verifies the identity of the user.
- OIDC provides an id_token in the form of a signed JWT alongside the access_token to verify the user.
Understanding the Linux Directory Structure
The Linux filesystem follows a hierarchical directory structure beginning at the root directory "/". Core system components like the kernel and bootloader are kept in "boot", while device-related files reside in "dev". Essential user binaries, libraries, and installed software are organized across "bin", "sbin", "usr", and "lib", with administrative configurations stored in "etc" and dynamic data like logs stored in "var". Additionally, user profiles reside in "home", and external storage devices are managed via mount points like "media".
- The Linux filesystem hierarchy originates from the root directory designated as "/".
- Kernel images and bootloader files reside in the "boot" directory, while hardware partitions and device files are kept in "dev".
- Essential user commands such as ls, cp, and cat are stored in the "bin" directory.
- Installed software packages and libraries are primarily distributed across "usr", "lib", "bin", and "sbin".
- The "etc" directory holds system-wide configuration files, and "var" stores variable runtime data such as logs.
- Individual user accounts and personal files are located within the "home" directory, while removable external drives are mounted in "media".