@ConfigRoot(phase=RUN_TIME)
@ConfigMapping(prefix="quarkus.langchain4j.milvus")
public interface MilvusRuntimeConfig
-
Method Summary
io.milvus.common.clientenum.ConsistencyLevelEnum
boolean
Create the collection if it does not exist yet.
Description of the collection.
Dimension of the vectors.
The URL of the Milvus server.
io.milvus.param.IndexType
The index type to use for the collection.
io.milvus.param.MetricType
The metric type to use for searching.
The password for the Milvus server.
The port of the Milvus server.
The timeout duration for the Milvus client.
The authentication token for the Milvus server.
The username for the Milvus server.
Name of the field to store the vector in.
-
Method Details
-
host
The URL of the Milvus server.
-
port
The port of the Milvus server.
-
token
The authentication token for the Milvus server.
-
username
The username for the Milvus server.
-
password
The password for the Milvus server.
-
timeout
The timeout duration for the Milvus client. If not specified, 5 seconds will be used.
-
dbName
@WithDefault("default")
String dbName()
Name of the database.
-
createCollection
@WithDefault("true")
boolean createCollection()
Create the collection if it does not exist yet.
-
collectionName
@WithDefault("embeddings")
String collectionName()
Name of the collection.
-
dimension
Dimension of the vectors. Only applicable when the collection yet has to be created.
-
primaryField
@WithDefault("id")
String primaryField()
TODO
-
vectorField
@WithDefault("vector")
String vectorField()
Name of the field to store the vector in.
-
description
Description of the collection.
-
indexType
@WithDefault("FLAT")
io.milvus.param.IndexType indexType()
The index type to use for the collection.
-
metricType
@WithDefault("COSINE")
io.milvus.param.MetricType metricType()
The metric type to use for searching.
-
consistencyLevel
@WithDefault("EVENTUALLY")
io.milvus.common.clientenum.ConsistencyLevelEnum consistencyLevel()
The consistency level.