prompt.PromptTemplates

prompt.PromptTemplates(self)

Class to store prompt templates for SOC and SIC classification tasks.

Each prompt template includes the necessary variables and formatting instructions to generate the prompt. The module also includes the necessary imports and configurations to generate the prompts.

Attributes

Name Type Description
SOC_PROMPT_PYDANTIC PromptTemplate Prompt template for determining SOC codes based on respondent’s data.
SIC_PROMPT_PYDANTIC PromptTemplate Prompt template for determining SIC codes based on respondent’s data.
SIC_PROMPT_RAG PromptTemplate Prompt template for determining SIC codes based on respondent’s data, with a relevant subset of SIC codes provided.
GENERAL_PROMPT_RAG PromptTemplate Prompt template for determining custom classification codes based on respondent data, with a relevant subset of codes provided.