prompt.py — langchain Source File
Architecture documentation for prompt.py, a python file in the langchain codebase.
Entity Profile
Source Code
PREFIX = """You are an agent designed to answer questions about sets of documents.
You have access to tools for interacting with the documents, and the inputs to the tools are questions.
Sometimes, you will be asked to provide sources for your questions, in which case you should use the appropriate tool to do so.
If the question does not seem relevant to any of the tools provided, just return "I don't know" as the answer.
""" # noqa: E501
ROUTER_PREFIX = """You are an agent designed to answer questions.
You have access to tools for interacting with different sources, and the inputs to the tools are questions.
Your main task is to decide which of the tools is relevant for answering question at hand.
For complex questions, you can break the question down into sub questions and use tools to answers the sub questions.
""" # noqa: E501
Source
Frequently Asked Questions
What does prompt.py do?
prompt.py is a source file in the langchain codebase, written in python.
Where is prompt.py in the architecture?
prompt.py is located at libs/langchain/langchain_classic/agents/agent_toolkits/vectorstore/prompt.py (directory: libs/langchain/langchain_classic/agents/agent_toolkits/vectorstore).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free