Ask your Drive.Get the answer.
Connect Google Drive once. Cortex reads every document and answers your questions in plain language - with a link to the exact file and page each answer came from.
Google Drive
Cortex
Connect Google Drive once. Cortex reads every document and answers your questions in plain language - with a link to the exact file and page each answer came from.
Google Drive
Architecture
The actual pipeline behind every answer: retrieval, re-ranking, a grounding check, then a response cited to the source.
Files from your connected Google Drive folder (and any direct uploads) are parsed and split into overlapping chunks.
document_chunksEach chunk is embedded with gemini-embedding-001 and truncated to 768 dimensions, then stored in Supabase pgvector.
768-dimpgvector cosine similarity and Postgres full-text search run in parallel, fused with Reciprocal Rank Fusion.
RRF · k=60The top 10 candidate chunks are scored for relevance and cut down to the 3 that actually answer the question.
gemini-3.1-flash-liteThe agent checks whether the retrieved context is sufficient, or reaches out to live web search when it isn't.
tool-calling · TavilyThe final answer streams back token-by-token over Server-Sent Events, cited to the exact source chunk.
SSE · gemini-3.1-flash-liteWhy it's different
Every answer is grounded in your own files, checked for relevance before it's written, and cited so you can verify it in one click.
Cortex matches on meaning and on exact wording at the same time, then merges both - so it surfaces the right passage whether or not you used the words in the document.
Read-only access to the folder you choose. Everything is scoped to your workspace with row-level isolation, so documents never cross between accounts.
Candidate passages are scored for relevance and narrowed to the few that actually answer your question before anything is written.
If the documents don't cover your question, Cortex says so instead of guessing - and can reach out to live web search when you want it to.
Every claim traces back to the exact file and page it came from - click a citation to open the source.
Connect Google Drive and ask your first question in under a minute. Cortex handles the rest.