Turn your Google Drive folder into a smart knowledge base. Files are read every night, converted into vector data, and saved to a database for fast search. Great for teams that need quick answers from PDFs, text, and JSON.
Two triggers control the run, a manual test and a daily schedule at 3 AM. The flow lists a source folder in Google Drive, loops through each file, downloads it, and routes it by type. PDFs, text, and JSON are parsed with the right extractor. The text is split into small chunks with 50 character overlap, turned into embeddings with OpenAI text embedding 3 small, and inserted into a PostgreSQL table with PGVector. After indexing, the file is moved to a processed folder so it will not be handled again.
Setup needs Google Drive access, an OpenAI API key, and a PostgreSQL database with the PGVector extension. Expect faster search and less manual sorting as new files are indexed while you sleep. Useful for internal knowledge search, policy libraries, playbooks, and project docs.