Class MilvusEmbeddingStore
java.lang.Object
dev.langchain4j.store.embedding.milvus.MilvusEmbeddingStore
- All Implemented Interfaces:
EmbeddingStore<TextSegment>
Represents an Milvus index as an embedding store.
Supports both local and managed Milvus instances.
Supports storing
Supports both local and managed Milvus instances.
Supports storing
Metadata and filtering by it using a Filter
(provided inside an EmbeddingSearchRequest).-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMilvusEmbeddingStore(String host, Integer port, String collectionName, Integer dimension, io.milvus.param.IndexType indexType, io.milvus.param.MetricType metricType, String uri, String token, String username, String password, io.milvus.common.clientenum.ConsistencyLevelEnum consistencyLevel, Boolean retrieveEmbeddingsOnSearch, String databaseName) -
Method Summary
Modifier and TypeMethodDescriptionadd(Embedding embedding, TextSegment textSegment) voidaddAll(List<Embedding> embeddings, List<TextSegment> embedded) static MilvusEmbeddingStore.Builderbuilder()voiddropCollection(String collectionName) search(EmbeddingSearchRequest embeddingSearchRequest) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.store.embedding.EmbeddingStore
findRelevant, findRelevant, findRelevant, findRelevant
-
Constructor Details
-
MilvusEmbeddingStore
public MilvusEmbeddingStore(String host, Integer port, String collectionName, Integer dimension, io.milvus.param.IndexType indexType, io.milvus.param.MetricType metricType, String uri, String token, String username, String password, io.milvus.common.clientenum.ConsistencyLevelEnum consistencyLevel, Boolean retrieveEmbeddingsOnSearch, String databaseName)
-
-
Method Details
-
dropCollection
-
add
- Specified by:
addin interfaceEmbeddingStore<TextSegment>
-
add
- Specified by:
addin interfaceEmbeddingStore<TextSegment>
-
add
- Specified by:
addin interfaceEmbeddingStore<TextSegment>
-
addAll
- Specified by:
addAllin interfaceEmbeddingStore<TextSegment>
-
addAll
- Specified by:
addAllin interfaceEmbeddingStore<TextSegment>
-
search
- Specified by:
searchin interfaceEmbeddingStore<TextSegment>
-
builder
-