snowflake.cortex.Complete

snowflake.cortex.Complete(model: Union[str, Column], prompt: Union[str, Column], session: Optional[Session] = None) Union[str, Column]

Complete calls into the LLM inference service to perform completion.

Parameters:
  • model – A Column of strings representing model types.

  • prompt – A Column of prompts to send to the LLM.

  • session – The snowpark session to use. Will be inferred by context if not specified.

Returns:

A column of string responses.

语言: 中文