Home / File/ chain_filter_prompt.py — langchain Source File

chain_filter_prompt.py — langchain Source File

Architecture documentation for chain_filter_prompt.py, a python file in the langchain codebase.

Entity Profile

Source Code

prompt_template = """Given the following question and context, return YES if the context is relevant to the question and NO if it isn't.

> Question: {question}
> Context:
>>>
{context}
>>>
> Relevant (YES / NO):"""  # noqa: E501

Frequently Asked Questions

What does chain_filter_prompt.py do?
chain_filter_prompt.py is a source file in the langchain codebase, written in python.
Where is chain_filter_prompt.py in the architecture?
chain_filter_prompt.py is located at libs/langchain/langchain_classic/retrievers/document_compressors/chain_filter_prompt.py (directory: libs/langchain/langchain_classic/retrievers/document_compressors).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free