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
- Add Manual Trigger, or Schedule Trigger when the documents change often.
- Add Google Drive with Resource File/Folder, Operation Search, filtered to your folder.
- 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.
- Add Simple Vector Store with Operation Mode Insert Documents and Memory Key drive_docs.
- 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.
- Run it once to load the documents.
Part two: answer questions in Duaer
- Add Chat Trigger and connect an AI Agent.
- On Chat Model attach Duaer Chat Model and pick a model by price; no key needed.
- 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.
- Attach the same Embeddings OpenAI model below it. Load and retrieval must use the same embedding model.
- 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
Retrieve relevant context with RAG in Duaer
Write documents into a vector store, then retrieve pieces for the model when someone asks. Duaer RAG usually has a load branch and a retrieve branch.
NodesUpload a file with Google Drive in Duaer
In Duaer, Google Drive defaults to Authentication OAuth2, Resource File, and Operation Upload. Input Data Field Name defaults to data. You need a googleDriveOAuth2Api credential.
NodesPick a model in Duaer Chat Model
In Duaer, Duaer Chat Model connects a model to an AI Agent or Basic LLM Chain. Whoever configures the node picks the model from a dropdown; each model shows its own AI credits.
CredentialsSet up Google OAuth2 single service credentials in Duaer
Store Google OAuth2 single service connection details in Duaer for digital-organization nodes to use at runtime. Secrets are protected by the instance encryption key and are not written into node parameters.