Architecture
Below is a high-level diagram of the various components powering the AI Assistant.
Components
sakhi-api-service
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:
Ingest-Documents Script
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:
sakhi-telegram-unified-service
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:
whatsapp-bot
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:
Last updated