类 AbstractModel
- java.lang.Object
-
- org.apache.seatunnel.transform.llm.model.AbstractModel
-
- 所有已实现的接口:
Closeable,AutoCloseable,Model
- 直接已知子类:
OpenAIModel
public abstract class AbstractModel extends Object implements Model
-
-
字段概要
字段 修饰符和类型 字段 说明 protected static org.apache.seatunnel.shade.com.fasterxml.jackson.databind.ObjectMapperOBJECT_MAPPER
-
构造器概要
构造器 构造器 说明 AbstractModel(org.apache.seatunnel.api.table.type.SeaTunnelRowType rowType, org.apache.seatunnel.api.table.type.SqlType outputType, String prompt)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract List<String>chatWithModel(String promptWithLimit, String rowsJson)List<String>inference(List<org.apache.seatunnel.api.table.type.SeaTunnelRow> rows)
-
-
-
构造器详细资料
-
AbstractModel
public AbstractModel(org.apache.seatunnel.api.table.type.SeaTunnelRowType rowType, org.apache.seatunnel.api.table.type.SqlType outputType, String prompt)
-
-
方法详细资料
-
inference
public List<String> inference(List<org.apache.seatunnel.api.table.type.SeaTunnelRow> rows) throws IOException
- 指定者:
inference在接口中Model- 抛出:
IOException
-
chatWithModel
protected abstract List<String> chatWithModel(String promptWithLimit, String rowsJson) throws IOException
- 抛出:
IOException
-
-