snowflake.ml.cortex

Classes

CompleteOptions

Options configuring a snowflake.cortex.Complete call.

Finetune([session])

Cortex Fine-Tuning API.

FinetuneJob(session, status)

Fine-tuning Job.

FinetuneStatus([id, status, base_model, ...])

Fine-tuning job status.

Functions

Note

Functions in this module are also available through “CamelCase” names (for example, ClassifyText is the same as complete_options). These names are deprecated as of snowflake-ml-python version 1.7.3, and will be removed in a future release. Use the “snake_case” names shown here.

classify_text(str_input, categories[, session])

Use the LLM inference service to classify the INPUT text into one of the target CATEGORIES.

complete(model, prompt, *[, options, ...])

Complete calls into the LLM inference service to perform completion.

embed_text_1024(model, text[, session])

Calls into the LLM inference service to embed the text.

embed_text_768(model, text[, session])

Calls into the LLM inference service to embed the text.

extract_answer(from_text, question[, session])

Calls into the LLM inference service to extract an answer from within specified text.

sentiment(text[, session])

Calls into the LLM inference service to perform sentiment analysis on the input text.

summarize(text[, session])

Calls into the LLM inference service to summarize the input text.

translate(text, from_language, to_language)

Calls into the LLM inference service to perform translation.