Interface MilvusRuntimeConfig


@ConfigRoot(phase=RUN_TIME) @ConfigMapping(prefix="quarkus.langchain4j.milvus") public interface MilvusRuntimeConfig
  • Method Details

    • host

      String host()
      The URL of the Milvus server.
    • port

      Integer port()
      The port of the Milvus server.
    • token

      Optional<String> token()
      The authentication token for the Milvus server.
    • username

      Optional<String> username()
      The username for the Milvus server.
    • password

      Optional<String> password()
      The password for the Milvus server.
    • timeout

      Optional<Duration> 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

      Optional<Integer> 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

      Optional<String> 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.