def get_settings(index_name: str, marqo_config: config.Config = Depends(get_config)):
    """
    Get settings of an index. Please refer to
    [Index settings API document](https://docs.marqo.ai/latest/reference/api/settings/get-index-stats/) for details.
    """
    marqo_index = marqo_config.index_management.get_index(index_name)
    return IndexSettings.from_marqo_index(marqo_index).dict(exclude_none=True, by_alias=True)

    Get settings of an index. Please refer to
    [Index settings API document](https://docs.marqo.ai/latest/reference/api/settings/get-index-stats/) for details.
    
src/marqo/tensor_search/api.py