MCPcopy
hub / github.com/langchain-ai/langchain / QuestionGeneratorChain

Class QuestionGeneratorChain

libs/langchain/langchain/chains/flare/base.py:73–86  ·  view source on GitHub ↗

Chain that generates questions from uncertain spans.

Source from the content-addressed store, hash-verified

71
72
73class QuestionGeneratorChain(LLMChain):
74 """Chain that generates questions from uncertain spans."""
75
76 prompt: BasePromptTemplate = QUESTION_GENERATOR_PROMPT
77 """Prompt template for the chain."""
78
79 @classmethod
80 def is_lc_serializable(cls) -> bool:
81 return False
82
83 @property
84 def input_keys(self) -> List[str]:
85 """Input keys for the chain."""
86 return ["user_input", "context", "response"]
87
88
89def _low_confidence_spans(

Callers 1

from_llmMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected