I don’t know if it’s the right channel for that, just want to point out something about the documentation.
Sorry for this quiet of low importance matter, but I was trying to find the PromptTemplate class in the documentation.
I was going through LangChain Reference > LangChain > LangChain Core > Prompts. In this page the only result is the class ChatPromptTemplate.
Then I search it and the result is LangChain Reference > LangChain > LangChain Core > Prompts > prompt.
If I go one step back in the breadcrumb is the same page than before with only the ChatPromptTemplate class.
Not so much a big deal but it would be better to find all the corresponding class for the prompts in one single page than searching for them. If we don’t know the name, it will harder to find.
Thanks in advance
Hello @Canfry,
Welcome to the LangChain community, and thanks for flagging this. You’re right that the Prompts index page is easy to misread.
The API Reference is organized by Python submodules, not as one flat list of classes. So the top-level Prompts page mainly surfaces ChatPromptTemplate, while PromptTemplate lives on the prompt submodule page. The docs are there, they’re just split across pages, which makes browsing harder if you don’t already know the class name.
Direct links:
Both import the same way:
from langchain_core.prompts import PromptTemplate, ChatPromptTemplate
Search in the Reference works well once you know the class name; browsing the parent page alone can feel incomplete.
I would recommend you raise the same issue on Langchain Docs Repo
Hope that helps!
Thank you so much keenborder786 for the information and your explanation.
I’ll raise the issue on the Docs repo. Thanks
Best regards
@Canfry If this helped you can you please mark the reply as solution so the thread get’s closed.