Module: Langchain::Prompt

Includes:
Loading
Defined in:
lib/langchain/prompt.rb,
lib/langchain/prompt/base.rb,
lib/langchain/prompt/loading.rb,
lib/langchain/prompt/prompt_template.rb,
lib/langchain/prompt/few_shot_prompt_template.rb

Defined Under Namespace

Modules: Loading Classes: Base, FewShotPromptTemplate, PromptTemplate

Constant Summary collapse

TYPE_TO_LOADER =
{
  "prompt" => ->(config) { load_prompt(config) },
  "few_shot" => ->(config) { load_few_shot_prompt(config) }
}

Method Summary

Methods included from Loading

included