Duaer

AI recipes

Build a Duaer chatbot that answers from Google Drive docs

In Duaer, chunk the documents in a Google Drive folder into a vector store, then let an AI Agent retrieve the relevant pieces to answer each question.

Part one: load documents into a vector store in Duaer

  1. Add Manual Trigger, or Schedule Trigger when the documents change often.
  2. Add Google Drive with Resource File/Folder, Operation Search, filtered to your folder.
  3. Add another Google Drive with Resource File, Operation Download, File {{ $json.id }}. For Google Docs, set Google File Conversion under Options to PDF or plain text.
  4. Add Simple Vector Store with Operation Mode Insert Documents and Memory Key drive_docs.
  5. Attach three sub-nodes: Embeddings OpenAI; Default Data Loader with Type of Data Binary; Recursive Character Text Splitter with chunk size 1000 and overlap 200.
  6. Run it once to load the documents.

Part two: answer questions in Duaer

  1. Add Chat Trigger and connect an AI Agent.
  2. On Chat Model attach Duaer Chat Model and pick a model by price; no key needed.
  3. On Tool attach a Simple Vector Store with Operation Mode Retrieve Documents (As Tool for AI Agent), Memory Key drive_docs, and a description such as Company Google Drive documents.
  4. Attach the same Embeddings OpenAI model below it. Load and retrieval must use the same embedding model.
  5. Open the chat panel and ask. The agent retrieves first, then answers.

Before you go live

Simple Vector Store lives in Duaer process memory, so rerun part one after a restart. For lasting storage, switch to Postgres PGVector, Qdrant, or Pinecone with the same steps. Background: Retrieve relevant context with RAG in Duaer.

Questions

Can Duaer RAG read Google Docs and Sheets?

Yes. The Duaer Google Drive Download operation converts Google files to PDF or plain text with Google File Conversion before the Default Data Loader.

Does the Duaer Simple Vector Store survive a restart?

No. Simple Vector Store lives in Duaer memory and suits trials; use PGVector, Qdrant, or Pinecone for lasting storage.

In this section