Skip to content

AI Flows

AI Flows enable developers to design distributed DAGs(Directed Acycling Graphs) to address complex requirements. This block helps in orchestrating multiple AI services and components to create comprehensive AI-driven workflows.

When do you need flows?

Flows are required when you have multiple steps to be executed one after the other in a consistent manner. Typical examples are RAG pipelines, which extract information from Vector databases and then forward it to LLMs and multi-step LLM execution like “Tree of thoughts” used in resolving complex prompts into simper prompts.

AI Flow Tasks

AI Flows are a workflows with a string of specific AI and Machine Learning tasks which are executed in sequence to achieve a specific outcome. Below are list of tasks that available on kis.ai platform out of the box.

List of AI Flow Tasks

NameDescription
llm-chatchat with llms local or remote, using standard Open AI chat completion API
text-to-imageconvert text prompts to image through multi-modal LLMs and services
text-to-videoconvert text prompts to video through multi-model LLMs and services
voice-to-textconvert voice to text, multi-voice and with diarization
text-to-voiceconvert text to voice
scrapesubmits a request to scraping service, waits for the response and passes the response to next task
ocrconverts and images or pdf to text
apimake an api call and return the response as json, yaml, text, csv or xlsx
embed-textconverts the text into vector embeddings
embed-docconverts the document into vector embeddings
embed-imageconverts images into vector embeddings
embed-videoconverts videos into vector embeddings
semantic-embedadd embeddings to vector database
semantic-add-textadd text data to vector database after converting to embeddings
semantic-add-imageadd image to vector database after converting to embeddings
semantic-add-videoadd video to vector database after converting to embeddings
semantic-searchsearch on vector databases
lexical-add-textadd text to search index
lexical-add-docadd document to search index
validate-jsonvalidate json based on jsonschema
validate-yamlvalidate yaml based on yaml schema
validate-codevalidate code with parsers and compilers
validate-kis.aivalidate kis.ai formats
rag-add-topicadd content to a rag topic (lexical, semantic and knowedgegraph databases)
rag-update-topicupdate content of a rag topic (lexical, semantic and knowledgraph databases)
rag-delete-topicdelete content of a rag topic
rag-search-topicsimple or hybrid search over a RAG topic
kg-text-ontologygenerates ontology from given text and domain
kg-text-graphgenerates a knowledge graph from the text
kg-validate-textvalidates a text against a graph or ontology
kg-validate-graphvalidates a given knowledge graph against parent graph or ontology
loglogs the message to observability logs. Useful to debug your flows
echoechoes back the message you send, typically used to test the flow