All Products
Search
Document Center

AnalyticDB:Get started to build RAG applications by using the AnalyticDB for PostgreSQL API

Last Updated:Dec 04, 2024

The following topics describe how to use the AnalyticDB for PostgreSQL API to quickly build retrieval-augmented generation (RAG) applications.

The RAG architecture uses information retrieval systems to enhance the capabilities of large language models (LLMs) and provides relevant contextual information, such as industry-specific or proprietary data documents. The following figure shows the RAG architecture. llc.png

Powered by the self-developed FastANN vector engine, AnalyticDB for PostgreSQL provides a series of document processing capabilities to users by using API operations.

The API encapsulates the following AI Service capabilities:

  • Multi-tenant management

  • Document processing: loading, splitting, embedding, and multimode processing

  • Search capabilities: vector search, full-text search, and reranking

Prerequisites

Quick start

  1. Create an instance.

  2. Create a privileged account.

  3. Prepare a development environment.

  4. Initialize the vector database.

  5. Create a namespace.

  6. Create a document library.

  7. Manage documents.

  8. Perform document search and LLM integration.