def initialize_config(settings: Dict[str, Any]) -> RAGLiteConfig:
    """Initializes and returns a RAGLiteConfig object based on provided settings.

    This function constructs a RAGLiteConfig object using the database URL, 
    language model path, and embedder path specified in the `settings` dictionary.
    The configuration includes default options for embedder normalization and 
    chunk size. A reranker is also initialized with a predefined model.

    Args:
        settings (Dict[str, Any]): A dictionary containing configuration 
        parameters. Expected keys are 'DBUrl', 'LLMPath', and 'EmbedderPath'.

    Returns:
        RAGLiteConfig: An initialized configuration object for RAGLite.

    Raises:
        ValueError: If there is an error in the configuration process, such as 
        missing keys or invalid values in the settings dictionary."""
    try:
        return RAGLiteConfig(
            db_url=settings["DBUrl"],
            llm=f"llama-cpp-python/{settings['LLMPath']}",
            embedder=f"llama-cpp-python/{settings['EmbedderPath']}",
            embedder_normalize=True,
            chunk_max_size=512,
            reranker=Reranker("ms-marco-MiniLM-L-12-v2", model_type="flashrank")
        )
    except Exception as e:
        raise ValueError(f"Configuration error: {e}")
Initializes and returns a RAGLiteConfig object based on provided settings.

    This function constructs a RAGLiteConfig object using the database URL, 
    language model path, and embedder path specified in the `settings` dictionary.
    The configuration includes default options for embedder normalization and 
    chunk size. A reranker is also initialized with a predefined model.

    Args:
        settings (Dict[str, Any]): A dictionary containing configuration 
        parameters. Expected keys are 'DBUrl', 'LLMPath', and 'EmbedderPath'.

    Returns:
        RAGLiteConfig: An initialized configuration object for RAGLite.

    Raises:
        ValueError: If there is an error in the configuration process, such as 
        missing keys or invalid values in the settings dictionary.
rag_tutorials/local_hybrid_search_rag/local_main.py