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