Библиотека / Строительные блоки и утилиты
Строительные блоки и утилиты
Классификация изображений по типу местности с Voyage AI и Qdrant
Вызывается другим workflow: получает эмбеддинг URL изображения через Voyage AI, находит похожие размеченные изображения в Qdrant и возвращает преобладающий класс местности.
Что делает
## KNN classification workflow-tool ### This n8n template takes an image URL (as anomaly detection tool does), and as output, it returns a class of the object on the image (out of land types list) * An image URL is received via the Execute Workflow Trigger, which is then sent to the Voyage.ai Multimodal Embeddings API to fetch its embedding. * The image's embedding vector is then used to query Qdrant, returning a set of X similar images with pre-labeled classes. * Majority voting is done for classes of neighbouring images. * A loop is used to resolve scenarios where there is a tie in Majority Voting (for example, we have 5 "forest" and 5 "beach"), and we increase the number of neighbours to retrieve. * When the loop finally resolves, the identified class is returned to the calling workflow.
Шаги
- Embed image
- Query Qdrant
- Majority Vote
- Increase limitKNN
- Propagate loop variables
- Image Test URL
- Return class
- Check tie
- Qdrant variables + embedding + KNN neigbours
- Execute Workflow Trigger
Похожие автоматизации
Строительные блоки и утилитыОбнаружение аномальных изображений обрезки с помощью эмбеддингов Voyage.ai и QdrantШагов: 9Строительные блоки и утилитыКлассификация изображений типов земельных участков с помощью эмбеддингов Voyage.ai и голосования KNN в QdrantШагов: 10Мониторинг, эксплуатация и инцидентыОбнаружение аномальных изображений урожая с помощью эмбеддингов Voyage AI и QdrantШагов: 9RAG и базы знанийАссистент по налоговому кодексу с Qdrant, Mistral и OpenAIШагов: 31