Replies: 1 comment
-
To handle your email summarization project in LangFlow and address the issues with the
By following these steps, you should be able to preprocess your input data effectively for use in your prompt template. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
I'm working on an email summarization project using LangFlow, but I'm running into an issue with how my input data is being passed to the prompt. Specifically, the input contains a custom object (
HumanMessage
) that is not in standard JSON format. Here's an example of the problematic input:I'm trying to use this input in the following prompt template:
However, the input does not map correctly to the
{content}
variable in the template because of the custom object structure. LangFlow throws an error when trying to process this.What I Need Help With
Extracting the
content
field:content
field from themessages[0]
object, so only the plain email text ("hello world"
) is passed into the prompt.Simplifying the Input for the Prompt:
Best Practices in LangFlow:
What I’ve Tried
messages[0].content
, but it does not return any data.Questions
content
andsender
fields from theHumanMessage
object within LangFlow?Any help or pointers would be greatly appreciated. Thanks in advance!
Emi
Beta Was this translation helpful? Give feedback.
All reactions