目录

RAG Glossary

This document describes the core terms involved in the RAG module of Data Augmentation Kit, which are sorted alphabetically.

C

[h2]Config

Configuration items of a RAG session, including three core properties: Large Language Model (LLM), retrievalConfig, and retrievalCondition.

K

[h2]knowledge base

Structured data storage formed after knowledge processing, including the vector database and inverted index database, providing retrieval support for RAG.

R

[h2]RunConfig

Streaming Q&A configuration items. StreamType is used to specify the type of data (such as the thought process, reference source, and final answer) to be output in streaming mode.

[h2]runId

Unique identifier of a specific streaming Q&A in a session. It is used to cancel a specified Q&A task.

[h2]RetrievalConfig

Object for configuring knowledge base connection information in the RAG. It includes the channel configurations (channelConfigs) of the vector database and inverted index database, which determine the data source for retrieval.

[h2]RetrievalCondition

Object for configuring retrieval query and ranking policies in the RAG. It includes the retrieval target table (fromClause), recall fields (responseColumns), vector query conditions (vectorQuery), and reranking method (rerankMethod).

S

[h2]score

Rating of the answer returned by the RAG by the user. Value range: [1, 5], used for feedback and model optimization.

[h2]StreamType

Enumeration of the types of streaming Q&A output data. It includes THOUGHT (value 0), which indicates the thought process, REFERENCE (value 1), which indicates the reference source, and ANSWER (value 2), which indicates the final answer.