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
|
Read an environment variable and interpret it as a boolean. |
Get configuration parameters for RAG and LLM integration. |
|
Get the RAG response from the background task. |
|
Initialize the RAG system for chat functionality. |
|
Load a plant/project into the chat popup application instance. |
|
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.