public enum EmbeddingTextTypeEnum extends Enum<EmbeddingTextTypeEnum>
| Enum Constant and Description |
|---|
DOCUMENT
Embedding document类型的文本, 用来保存文档向量至向量数据库
|
QUERY
Embedding query类型的文本, 用来检索召回
|
| Modifier and Type | Method and Description |
|---|---|
String |
getType() |
static EmbeddingTextTypeEnum |
typeOf(String type) |
static EmbeddingTextTypeEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmbeddingTextTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmbeddingTextTypeEnum QUERY
public static final EmbeddingTextTypeEnum DOCUMENT
public static EmbeddingTextTypeEnum[] values()
for (EmbeddingTextTypeEnum c : EmbeddingTextTypeEnum.values()) System.out.println(c);
public static EmbeddingTextTypeEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getType()
public static EmbeddingTextTypeEnum typeOf(String type)
Copyright © 2024. All rights reserved.