public class InMemoryRepository extends Object implements RepositoryStorable
| Constructor and Description |
|---|
InMemoryRepository(EmbeddingModel embeddingModel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists(String id)
是否存在
|
void |
insert(List<Document> documents)
插入
|
void |
remove(String... ids)
移除
|
List<Document> |
search(QueryCondition condition)
检索
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsearchpublic InMemoryRepository(EmbeddingModel embeddingModel)
public void insert(List<Document> documents) throws IOException
RepositoryStorableinsert in interface RepositoryStorableIOExceptionpublic void remove(String... ids)
RepositoryStorableremove in interface RepositoryStorablepublic boolean exists(String id)
RepositoryStorableexists in interface RepositoryStorablepublic List<Document> search(QueryCondition condition) throws IOException
Repositorysearch in interface Repositorycondition - 查询条件IOExceptionCopyright © 2025. All rights reserved.