From 7b306fb83bc0879496dad9b1bc11beea1430cc05 Mon Sep 17 00:00:00 2001 From: illuzn <57167030+illuzn@users.noreply.github.com> Date: Tue, 27 May 2025 16:26:23 +0930 Subject: [PATCH] Update genai.md --- docs/docs/configuration/genai.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/docs/configuration/genai.md b/docs/docs/configuration/genai.md index 8cfc893b6..be4d67e60 100644 --- a/docs/docs/configuration/genai.md +++ b/docs/docs/configuration/genai.md @@ -185,6 +185,12 @@ genai: car: "Observe the primary vehicle in these images. Focus on its movement, direction, or purpose (e.g., parking, approaching, circling). If it's a delivery vehicle, mention the company." ``` +:::note + +Some AI providers may have limits on the length of prompts e.g. Ollama v0.7.0 supports a maximum length of 4096 characters (4KiB). + +::: + Prompts can also be overriden at the camera level to provide a more detailed prompt to the model about your specific camera, if you desire. By default, descriptions will be generated for all tracked objects and all zones. But you can also optionally specify `objects` and `required_zones` to only generate descriptions for certain tracked objects or zones. Optionally, you can generate the description using a snapshot (if enabled) by setting `use_snapshot` to `True`. By default, this is set to `False`, which sends the uncompressed images from the `detect` stream collected over the object's lifetime to the model. Once the object lifecycle ends, only a single compressed and cropped thumbnail is saved with the tracked object. Using a snapshot might be useful when you want to _regenerate_ a tracked object's description as it will provide the AI with a higher-quality image (typically downscaled by the AI itself) than the cropped/compressed thumbnail. Using a snapshot otherwise has a trade-off in that only a single image is sent to your provider, which will limit the model's ability to determine object movement or direction.