bx-ai-rag

Load, chunk, embed, and query documents with vector memory for grounded AI responses.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ortus-boxlang/skills --skill bx-ai-rag
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bx-ai-rag
Source: https://github.com/ortus-boxlang/skills/tree/main/boxlang-modules/bx-ai/bx-ai-rag
Command: npx skills add https://github.com/ortus-boxlang/skills --skill bx-ai-rag

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

RAG systems ground AI responses to a document corpus to reduce hallucinations and keep answers current without model retraining.

Core Features & Use Cases

  • Load and chunk documents via aiDocuments for scalable context.
  • Generate embeddings with aiEmbed and store them in a vector memory or vector DB for fast retrieval.
  • Connect into an agent workflow to fetch relevant context and answer user questions from your knowledge base.

Quick Start

Ingest documents from a directory and instantiate a RAG-enabled agent to answer questions using your knowledge base.

Frequently Asked Questions about bx-ai-rag

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I ground AI answers with my own documents to reduce hallucinations?

Ground AI answers with your own documents using retrieval-augmented generation to load, chunk, embed, and query a document corpus. This fetches relevant context from a vector memory to deliver grounded results without model retraining.

What is the best way to build a knowledge base assistant for internal support?

Building a knowledge base assistant involves ingesting documents via aiDocuments, generating embeddings with aiEmbed, and storing them in a vector memory. You then wire an agent to fetch relevant context and answer user questions from your knowledge base.

How does document chunking and embedding work for retrieval-augmented generation?

Document chunking and embedding for retrieval-augmented generation works by loading files into scalable context chunks with aiDocuments, converting them to vector embeddings with aiEmbed, and storing them in a vector memory provider for fast retrieval.

Can I use vector memory providers to store embeddings for a customer support bot?

You can use vector memory providers to store embeddings for a customer support bot. The system stores embeddings generated by aiEmbed in a vector DB, allowing an agent workflow to quickly retrieve relevant context and answer support questions.

Do I need a vector DB to keep AI answers current without model retraining?

You need a vector DB or vector memory provider to keep AI answers current without model retraining. It stores your document embeddings, allowing the agent to retrieve updated context dynamically rather than relying on static model weights.

Why does my RAG agent return irrelevant context from the knowledge base?

A RAG agent returns irrelevant context when document chunking is poorly configured or embeddings are mismatched. Ensure aiDocuments properly chunks files for scalable context and aiEmbed generates accurate vectors stored in the vector memory.