Replies: 2 comments 1 reply
-
I tried Claude 3.5 Sonnet v2 on VertexAI, but the following error occurs. ValueError: System message must be a string, instead was: <class 'list'> langchain-core 0.3.25 |
Beta Was this translation helpful? Give feedback.
0 replies
-
How to solve it? The current method still prompts an error |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I want to use prompt caching to reduce latency.
My earlier approach used PromptTemplate with context to extract file name from a large description of the folder structure and file structures (the the complete directory tree with all the metadata about contents, size, creation date, etc). And it works well.
Now, I want to cache this large context as it does not change much over time.
I implemented the above code snippet by providing the detailed prompt as a system prompt. But it hallucinates badly. It is unable to understand the natural language question given as a user message.
Is it possible to use prompt caching with PromptTemplate?
Thank you
System Info
langchain 0.3.0
langchain-anthropic 0.2.0
langchain-community 0.3.0
langchain-core 0.3.0
langchain-experimental 0.3.0
langchain-openai 0.2.0
langchain-text-splitters 0.3.0
Beta Was this translation helpful? Give feedback.
All reactions