类 DocumentStore
Document Store
-
字段概要
字段修饰符和类型字段说明private DocumentIdGeneratorprivate DocumentSplitterprivate EmbeddingModelDocumentStore can use external embeddings models or its own embeddings Many vector databases come with the ability to embed themselves -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明delete(Collection<?> ids, StoreOptions options) delete store data by ids with optionsabstract StoreResultdoDelete(Collection<?> ids, StoreOptions options) doSearch(SearchWrapper wrapper, StoreOptions options) abstract StoreResultdoStore(List<Document> documents, StoreOptions options) abstract StoreResultdoUpdate(List<Document> documents, StoreOptions options) protected voidembedDocumentsIfNecessary(List<Document> documents, StoreOptions options) search(SearchWrapper wrapper, StoreOptions options) search vector data by SearchWrapper with optionsvoidsetDocumentIdGenerator(DocumentIdGenerator documentIdGenerator) voidsetDocumentSplitter(DocumentSplitter documentSplitter) voidsetEmbeddingModel(EmbeddingModel embeddingModel) store(List<Document> documents, StoreOptions options) Store Vector Data list wit optionsupdate(List<Document> documents, StoreOptions options) update store data list with options
-
字段详细资料
-
embeddingModel
DocumentStore can use external embeddings models or its own embeddings Many vector databases come with the ability to embed themselves -
documentSplitter
-
documentIdGenerator
-
-
构造器详细资料
-
DocumentStore
public DocumentStore()
-
-
方法详细资料
-
getEmbeddingModel
-
setEmbeddingModel
-
getDocumentSplitter
-
setDocumentSplitter
-
getDocumentIdGenerator
-
setDocumentIdGenerator
-
store
从类复制的说明:VectorStoreStore Vector Data list wit options- 指定者:
store在类中VectorStore<Document>- 参数:
documents- vector data listoptions- options- 返回:
- store result
-
delete
从类复制的说明:VectorStoredelete store data by ids with options- 指定者:
delete在类中VectorStore<Document>- 参数:
ids- idsoptions- store options- 返回:
- store result
-
update
从类复制的说明:VectorStoreupdate store data list with options- 指定者:
update在类中VectorStore<Document>- 参数:
documents- vector data listoptions- store options- 返回:
- store result
-
search
从类复制的说明:VectorStoresearch vector data by SearchWrapper with options- 指定者:
search在类中VectorStore<Document>- 参数:
wrapper- SearchWrapperoptions- Store Options- 返回:
- the vector data list
-
embedDocumentsIfNecessary
-
doStore
-
doDelete
-
doUpdate
-
doSearch
-