def process_document(file_path: str) -> bool:
    """Processes a document by inserting it into a system with a given configuration.

    This function checks if a configuration is initialized in the session state.
    If the configuration is present, it attempts to insert the document located
    at the given file path using this configuration.

    Args:
        file_path (str): The path to the document to be processed.

    Returns:
        bool: True if the document was successfully processed; False otherwise."""
    try:
        if not st.session_state.get('my_config'):
            raise ValueError("Configuration not initialized")
        insert_document(Path(file_path), config=st.session_state.my_config)
        return True
    except Exception as e:
        logger.error(f"Error processing document: {str(e)}")
        return False
Processes a document by inserting it into a system with a given configuration.

    This function checks if a configuration is initialized in the session state.
    If the configuration is present, it attempts to insert the document located
    at the given file path using this configuration.

    Args:
        file_path (str): The path to the document to be processed.

    Returns:
        bool: True if the document was successfully processed; False otherwise.
rag_tutorials/hybrid_search_rag/main.py