What is RAG
Retrieval-Augmented Generation (RAG) is a technique that improves AI answers by doing a “similarity search” on company data. In order to perform a similarity search, the source data needs to be converted into embeddings (vectors) first. Peliqan provides a RAG Manager app to create embeddings from source data (e.g. Google Drive files, Notion pages, Github files etc.) and to perform RAG searches. These RAG searches are then used in e.g. an AI Chatbot or an MCP Server.RAG Manager - create embeddings
The RAG Manager app in Peliqan allows you to configure the automatic scheduled creation of embeddings (vectors) for RAG. The Peliqan data warehouse is used as vector store (using pgvector). Install the app from the “Rag Manager” tile:RAG data sources
RAG can be used on text sources. Here are examples of Peliqan connectors that are typically used as a source for RAG embeddings:- Notion
- Google Drive
- Github
- Etc.
For some connectors, you need to enable a custom pipeline script to fetch the actual content for each file or item. E.g. for Notion you need a custom pipeline to fetch the contents of each page. For Google Drive and Github you need a custom pipeline to fetch the text content of files. Click on the above connector links for more information.
Performing RAG Search
Example script
Here’s an example Python script to perform a RAG Search in Peliqan:Click to expand script
Click to expand script
RAG API handler
Here’s an API handler script that performs RAG search:Click to expand script
Click to expand script
