In a RAG app on Snowflake, what role does Cortex Search play?
- Exam domain
- Retrieval with Cortex Search
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why C is the answer
It retrieves relevant text from your data as grounding context for the LLM
Snowflake describes Cortex Search as the retrieval engine that supplies an LLM with context from your own data in RAG, and as the retrieval layer for Cortex Agents over unstructured data.
Remember: Cortex Search is the retriever.
In detail
- Search retrieves.
- The LLM answers.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. It converts questions into SQLWrong
Text to SQL is Cortex Analyst.
B. It writes the final answerWrong
Answer writing is the LLM's job, for example AI_COMPLETE.
C. It retrieves relevant text from your data as grounding context for the LLMRight
Cortex Search is the retriever.
D. It stores model weights for custom LLMs that the app has fine-tunedWrong
Model weights belong in the Model Registry.
Use case
An illustrative scenario, not a real incident.
Illustrative: a policy assistant retrieves three passages with Cortex Search and answers with AI_COMPLETE.
See it in different ways
sequenceDiagram participant P0 as App participant P1 as Cortex Search participant P2 as AI_COMPLETE P0->>P1: question P1-->>P0: top passages P0->>P2: question + passages P2-->>P0: answer
How to read this chart
- 1. App sends "question" to Cortex Search.
- 2. App gets a reply from Cortex Search: "top passages".
- 3. App sends "question + passages" to AI_COMPLETE.
- 4. App gets a reply from AI_COMPLETE: "answer".
flowchart TD
Q{"What is the question about?"}
Q -->|"Documents and text"| A0["Cortex Search"]
Q -->|"Tables and metrics"| A1["Cortex Analyst"]
Q -->|"Both, in one chat"| A2["Cortex Agents"]How to read this chart
- At "What is the question about?": if "Documents and text", go to "Cortex Search"; if "Tables and metrics", go to "Cortex Analyst"; if "Both, in one chat", go to "Cortex Agents".