Which APIs or functions can be used to query the Snowflake Cortex Search Service? (Choose three)
Snowflake Cortex Search provides dedicated programmatic and SQL interfaces to query the hybrid search index and retrieve the top-k relevant context chunks for RAG architectures:
1. **Snowflake Python APIs:** Using the Snowflake Python SDK or Snowpark client (`snowflake.core. cortex.search_service`), developers can execute search queries directly from Python applications, notebooks, or Streamlit interfaces.
2. **Snowflake REST APIs:** External applications, microservices, and web clients can retrieve search chunks over standard HTTPS endpoints by making authenticated REST calls to the Cortex Search service endpoint.
3. **The SEARCH_PREVIEW function:** In SQL worksheets and stored procedures, developers can test, query, and preview retrieval results directly using the built-in system function `SNOWFLAKE.CORTEX. SEARCH_PREVIEW(...)`.
In contrast, `CORTEX.COMPLETE` executes text generation rather than searching an index;
`EMBED_TEXT_768` computes vector embeddings from input strings; and `CORTEX.SUMMARIZE` produces a condensed textual synopsis. None of these functions query a Cortex Search Service.
References & Study Guide Topics:
* Snowflake Gen AI Functions: Cortex Search Service Retrieval Protocols
* Application Development: Querying Indexes via Python, REST, and `SEARCH_PREVIEW`
===============
Currently there are no comments in this discussion, be the first to comment!