---
title: "open"
sidebar_label: "open"
description: "Kotlin binding reference: open."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../../index.md)/[io.clika.modelverse](../../index.md)/[RerankerModel](../index.md)/[Companion](index.md)/[open](open.md)

# open

[common]\
fun [open](open.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), options: [LoadOptions](../../LoadOptions/index.md) = LoadOptions()): [RerankerModel](../index.md)

Load a reranking model from [path](open.md) (a repository id, a snapshot directory or a GGUF file) under [options](open.md). Blocks for the load; call it off the main thread.

#### Throws

| | |
|---|---|
| [ModelverseException](../../ModelverseException/index.md) | when no family of the library claims the files, the family declares no relevance score out of text, or the load fails, named in the message. |