QuestionQ32

VerifiedSnowflake Gen AI & LLM Functions

A Gen AI Specialist has one document on which they want to perform completions. The document is too large for the context window of SNOWFLAKE.CORTEX.COMPLETE.

In what order should the functions be applied to resolve the issue?

Order 1 is first, and Order 5 is last.

Drag & Drop
Order 1
Order 2
Order 3
Order 4
Order 5
Explanation

A retrieval-augmented completion flow first extracts document text, then splits it into context-sized chunks. Embeddings allow the prompt and chunks to be compared by cosine similarity so only the most relevant chunks are supplied to CORTEX.COMPLETE, keeping the completion input within its context window.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!