5.4.2.2.1. gemini_interface.blueprint.app_chatpopup.routes

Chat Popup Application Routes.


This module handles AI-powered chat interface with RAG (Retrieval-Augmented Generation) capabilities including message processing and response generation.

Functions

env_bool(name[, default])

Read an environment variable and interpret it as a boolean.

get_parameters()

Get configuration parameters for RAG and LLM integration.

get_rag_response()

Get the RAG response from the background task.

initialize_rag()

Initialize the RAG system for chat functionality.

load_plant()

Load a plant/project into the chat popup application instance.

send_message()

Send a message to the RAG system for processing.

gemini_interface.blueprint.app_chatpopup.routes.env_bool(name, default=False)[source]

Read an environment variable and interpret it as a boolean.

Returns default if the variable is not set. Truthy values are case-insensitive and include: “1”, “true”, “yes”, “y”, and “on”.

Return type:

bool

gemini_interface.blueprint.app_chatpopup.routes.get_parameters()[source]

Get configuration parameters for RAG and LLM integration.

gemini_interface.blueprint.app_chatpopup.routes.get_rag_response()[source]

Get the RAG response from the background task.

gemini_interface.blueprint.app_chatpopup.routes.initialize_rag()[source]

Initialize the RAG system for chat functionality.

gemini_interface.blueprint.app_chatpopup.routes.load_plant()[source]

Load a plant/project into the chat popup application instance.

gemini_interface.blueprint.app_chatpopup.routes.send_message()[source]

Send a message to the RAG system for processing.