chain_extract_prompt.py — langchain Source File
Architecture documentation for chain_extract_prompt.py, a python file in the langchain codebase.
Entity Profile
Source Code
prompt_template = """Given the following question and context, extract any part of the context *AS IS* that is relevant to answer the question. If none of the context is relevant return {no_output_str}.
Remember, *DO NOT* edit the extracted parts of the context.
> Question: {{question}}
> Context:
>>>
{{context}}
>>>
Extracted relevant parts:""" # noqa: E501
Source
Frequently Asked Questions
What does chain_extract_prompt.py do?
chain_extract_prompt.py is a source file in the langchain codebase, written in python.
Where is chain_extract_prompt.py in the architecture?
chain_extract_prompt.py is located at libs/langchain/langchain_classic/retrievers/document_compressors/chain_extract_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