Architecture
Last updated
Last updated
Below is a high-level diagram of the various components powering the AI Assistant.
This is the backend service that takes a question and generates a relevant answer using the RAG mechanism. The answers are based on the information in a set of ingested documents. The service has to be configured with the specific marqo indexes to retrieve the sections of relevant documents and the GenAI prompts to generate a response in the required form.
Code:
Document ingestion into the Marqo vector database is done through the below standalone python script.
Details on how to run is available under “To ingest data to marqo” section in the below readme file:
This is a webhook service that registers with Telegram Service to oer the bot flow in the Telegram client. This doesn’t have any APIs exposed to the consumers. The calls to this service are delegated through the Telegram Service.
Code:
This is a webhook service that registers with WhatsApp Gupshup Service to oer the bot flow in the WhatsApp client. This doesn’t have any APIs exposed to the consumers. The calls to this service are delegated through the WhatsApp Gupshup Service.
Code: