public class DashVectorRepository extends java.lang.Object implements RepositoryStorable, RepositoryLifecycle
限定符和类型 | 类和说明 |
---|---|
static class |
DashVectorRepository.Builder |
限定符和类型 | 方法和说明 |
---|---|
static DashVectorRepository.Builder |
builder(EmbeddingModel embeddingModel,
DashVectorClient client) |
void |
delete(java.lang.String... ids)
删除指定ID的文档
|
void |
dropRepository()
注销仓库
|
boolean |
exists(java.lang.String id)
检查文档是否存在
|
void |
initRepository()
初始化仓库
|
void |
insert(java.util.List<Document> documents)
批量存储文档
|
java.util.List<Document> |
search(QueryCondition condition)
搜索文档
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
search
public void initRepository() throws java.io.IOException
initRepository
在接口中 RepositoryLifecycle
java.io.IOException
public void insert(java.util.List<Document> documents) throws java.io.IOException
insert
在接口中 RepositoryStorable
java.io.IOException
public void delete(java.lang.String... ids) throws java.io.IOException
delete
在接口中 RepositoryStorable
java.io.IOException
public boolean exists(java.lang.String id) throws java.io.IOException
exists
在接口中 RepositoryStorable
java.io.IOException
public java.util.List<Document> search(QueryCondition condition) throws java.io.IOException
search
在接口中 Repository
condition
- 查询条件java.io.IOException
public void dropRepository() throws java.io.IOException
dropRepository
在接口中 RepositoryLifecycle
java.io.IOException
- 如果注销过程发生IO错误public static DashVectorRepository.Builder builder(EmbeddingModel embeddingModel, DashVectorClient client)