AlphaAvatarDocs

Docs version

Docs version

On this page

v0.7.0English
  1. Features
  2. When to Use RAG
  3. Use indexing when:
  4. Use query when:
  5. Functionality
  6. Typical Workflow
  7. Configuration
  8. Installation
  9. Supported RAG Frameworks
  10. Default: RAG-Anything
v0.7.0

Reference / Plugin reference / Tools

v0.7.0 · source 21190a84 · English

AlphaAvatar RAG Plugin

A Retrieval-Augmented Generation (RAG) tool for AlphaAvatar, enabling agents to index, search, and ground answers on documents stored on the Host.

The index belongs to the session: it lives in the session's own artifacts/rag/rag_anything/ directory, so each new session starts with an empty one.

The default backend is RAGAnything, but the plugin is designed to support multiple RAG frameworks in a pluggable way.


Features

  • Session Knowledge Indexing Index local documents into a searchable index: a file of a format RAG-Anything parses (PDF, Office, images, text), or a directory's .pdf, .docx and .pptx files, recursively.

  • Grounded Answer Generation Retrieve relevant chunks and generate answers grounded in the indexed documents rather than model-only knowledge.

  • Unified RAG Interface Abstracts indexing and querying behind a clean, agent-friendly API, independent of the underlying RAG engine.

  • Integration with DeepResearch PDFs that DeepResearch download saves on the Host can be indexed in the same session.


When to Use RAG

Use indexing when:

  • The user has authorized storing the documents, e.g. asks to save, store or archive them (e.g. “保存一下”, “做个资料库”); a lookup request alone does not authorize indexing

Use query when:

  • The user asks questions about content indexed in this session
  • Answers must be grounded in the user's documents

Functionality

It exposes two core operations (op) that can be composed into an agent workflow:

  • indexing Index the Host-local files or directories file_paths_or_dir names. URLs and uploads are not accepted; a path that is missing or is not a regular file or directory is skipped and reported.

  • query Retrieve relevant chunks from the session's index for query and generate a grounded answer.

data_source accepts only all; named corpora are not implemented.


Typical Workflow

  1. Acquire content

    • Local file paths are provided
    • PDFs are downloaded via DeepResearch
  2. Decide persistence intent

    • Explicit user authorization → index directly
    • Ambiguous intent → ask a clarification question
  3. Index content

    • Call indexing to build or extend the session's index
  4. Retrieve & answer

    • Call query to retrieve relevant chunks
    • Generate grounded, source-aware answers

Configuration

Indexing and queries send document content to an OpenAI-compatible service, with the key from OPENAI_API_KEY and the API root from OPENAI_BASE_URL (OpenAI's when unset). Without the key, unset, empty or blank, the first query or indexing fails and names it, loading nothing. This version uses gpt-4o-mini for text, gpt-4o for images and text-embedding-3-large for embeddings.

tools.rag.init_configDefaultMeaning
doc_parserminerumineru or docling; docling is used instead when no GPU is available
openai_base_urlOPENAI_BASE_URLThe API root, over the variable

Installation

alphaavatar setup installs it when the bundle selects it, with the extras the selected implementations need; from source, uv sync --all-packages --locked installs it with the whole workspace (installation). AlphaAvatar's packages are not published to PyPI.


Supported RAG Frameworks

Default: RAG-Anything

Github Website

RAGAnything is a flexible RAG framework optimized for:

  • Heterogeneous document formats
  • Incremental indexing
  • Local-first storage and retrieval
  • Agent-oriented workflows

It provides the default indexing and querying backend for the AlphaAvatar RAG plugin.


Additional RAG backends can be integrated in the future without changing agent logic.


Content maintained in AlphaAvatar/AlphaAvatar · source version shown above.


Documentation

v0.7.0English

Up / Down to navigate · Enter to open · Esc to close