def get_engine(model) -> Tuple[Any, Any]:
    """
    Get query engine and passage engine for the model.
    """
    if model not in UPSTAGE_EMBEDDING_MODELS:
        raise ValueError(
            f"Unknown model: {model}. Please provide a valid Upstage model name in: {', '.join(UPSTAGE_EMBEDDING_MODELS.keys())}"
        )
    return (
        UPSTAGE_EMBEDDING_MODELS[model]["query"],
        UPSTAGE_EMBEDDING_MODELS[model]["passage"],
    )

    Get query engine and passage engine for the model.
    
llama-index-integrations/embeddings/llama-index-embeddings-upstage/llama_index/embeddings/upstage/base.py