Relative Content

Tag Archive for pythonlangchainpy-langchain

How can I give context to a LLM in LangChain through a pipeline without the system messages appearing

Whenever I try to use a SystemMesssage or SystemMessagePromptTemplate with a pipeline, it prints out the System Message as part of the response. I thought it would be like when using an api (it doesn’t show the system messages and instead is used as context for the LLM). I think I’m using the wrong classes for these but I can’t seem to find how to do it in the docs. Is this something that you are not able to do when it’s installed locally?