Make Blueprint call return structured response #325
Replies: 3 comments 1 reply
-
|
The importance level is used to decide wether an event is important enough to send a notification. This means the importance analysis has to run before a notification can be sent. This will result in a delayed notifications. I think most users prefer the instant notification (for when someone is at the front door) and don't use |
Beta Was this translation helpful? Give feedback.
-
|
Actually what I had in mind was a general idea of sending just one query to LLM asking for a structured response. message: >-
You are an AI agent preparing a short log entry for events recorded by a security camera in front of my house based on the attached sequence of frames.
Examples of valid descriptions:
"A truck is parked by the gate", "A DHL courier is standing at the gate".
If no objects match the specified criteria, respond with: "Nothing detected"
Also generate a title summarizing the event, such as "Dog in the yard" or "Courier at the gate".
Evaluate the importance of the event based on these rules:
- "low" – no people detected on the property (even if there are some people behind the fense)
- "high" – one or more people detected on the property
Return the result as a JSON object in the following format:
{
"title": "Courier at the gate",
"description": "A DHL courier is standing at the gate with a package",
"importance": "low"
}The responses are quite reasonable (of course currently the services expect a text only so I had to extract the result), eg: {
"title": "Courier at the gate",
"description": "A DHL courier is standing at the gate with a package",
"importance": "low"
}That way in the first step we have already all the information needed to decide about notifications, storing in a timeline, etc. I would like someone more experienced in LLM's to shed some light on this approach if it makes sense or if it may decrease the quality of responses. |
Beta Was this translation helpful? Give feedback.
-
|
@michaljonik Would you mind sharing how you are using the response in subsequent actions? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm just wondering why the blueprint performs the analysis in two phases:
That way the second phase is obviously delayed. And also the cloud providers charge twice.
Wouldn't it be possible for all the analyzer services to make just one LLM call which would return all the data in a structured way: a title, a description, an importance, etc?
Beta Was this translation helpful? Give feedback.
All reactions