Partager via


MilvusMemoryStore Constructors

Definition

Overloads

MilvusMemoryStore(MilvusClient, String, Int32, SimilarityMetricType, ConsistencyLevel)

Initializes a new instance of MilvusMemoryStore over the given Milvus.Client.MilvusClient.

MilvusMemoryStore(String, Int32, Boolean, String, String, Int32, SimilarityMetricType, ConsistencyLevel, ILoggerFactory)

Creates a new MilvusMemoryStore, connecting to the given hostname on the default Milvus port of 19530. For more advanced configuration opens, construct a Milvus.Client.MilvusClient instance and pass it to MilvusMemoryStore(MilvusClient, String, Int32, SimilarityMetricType, ConsistencyLevel).

MilvusMemoryStore(String, String, Int32, Boolean, String, String, Int32, SimilarityMetricType, ConsistencyLevel, ILoggerFactory)

Creates a new MilvusMemoryStore, connecting to the given hostname on the default Milvus port of 19530. For more advanced configuration opens, construct a Milvus.Client.MilvusClient instance and pass it to MilvusMemoryStore(MilvusClient, String, Int32, SimilarityMetricType, ConsistencyLevel).

MilvusMemoryStore(String, String, String, Int32, Boolean, String, String, Int32, SimilarityMetricType, ConsistencyLevel, ILoggerFactory)

Creates a new MilvusMemoryStore, connecting to the given hostname on the default Milvus port of 19530. For more advanced configuration opens, construct a Milvus.Client.MilvusClient instance and pass it to MilvusMemoryStore(MilvusClient, String, Int32, SimilarityMetricType, ConsistencyLevel).

MilvusMemoryStore(MilvusClient, String, Int32, SimilarityMetricType, ConsistencyLevel)

Initializes a new instance of MilvusMemoryStore over the given Milvus.Client.MilvusClient.

public MilvusMemoryStore (Milvus.Client.MilvusClient client, string? indexName = default, int vectorSize = 1536, Milvus.Client.SimilarityMetricType metricType = Milvus.Client.SimilarityMetricType.Ip, Milvus.Client.ConsistencyLevel consistencyLevel = Milvus.Client.ConsistencyLevel.Session);
new Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore : Milvus.Client.MilvusClient * string * int * Milvus.Client.SimilarityMetricType * Milvus.Client.ConsistencyLevel -> Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore
Public Sub New (client As MilvusClient, Optional indexName As String = Nothing, Optional vectorSize As Integer = 1536, Optional metricType As SimilarityMetricType = Milvus.Client.SimilarityMetricType.Ip, Optional consistencyLevel As ConsistencyLevel = Milvus.Client.ConsistencyLevel.Session)

Parameters

client
Milvus.Client.MilvusClient

A Milvus.Client.MilvusClient configured with the necessary endpoint and authentication information.

indexName
String

The name of the index to use. Defaults to Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore.DefaultIndexName.

vectorSize
Int32

The size of the vectors used in Milvus. Defaults to 1536.

metricType
Milvus.Client.SimilarityMetricType

The metric used to measure similarity between vectors. Defaults to Milvus.Client.SimilarityMetricType.Ip.

consistencyLevel
Milvus.Client.ConsistencyLevel

The consistency level to be used in the search. Defaults to Milvus.Client.ConsistencyLevel.Session.

Applies to

MilvusMemoryStore(String, Int32, Boolean, String, String, Int32, SimilarityMetricType, ConsistencyLevel, ILoggerFactory)

Creates a new MilvusMemoryStore, connecting to the given hostname on the default Milvus port of 19530. For more advanced configuration opens, construct a Milvus.Client.MilvusClient instance and pass it to MilvusMemoryStore(MilvusClient, String, Int32, SimilarityMetricType, ConsistencyLevel).

public MilvusMemoryStore (string host, int port = 19530, bool ssl = false, string? database = default, string? indexName = default, int vectorSize = 1536, Milvus.Client.SimilarityMetricType metricType = Milvus.Client.SimilarityMetricType.Ip, Milvus.Client.ConsistencyLevel consistencyLevel = Milvus.Client.ConsistencyLevel.Session, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore : string * int * bool * string * string * int * Milvus.Client.SimilarityMetricType * Milvus.Client.ConsistencyLevel * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore
Public Sub New (host As String, Optional port As Integer = 19530, Optional ssl As Boolean = false, Optional database As String = Nothing, Optional indexName As String = Nothing, Optional vectorSize As Integer = 1536, Optional metricType As SimilarityMetricType = Milvus.Client.SimilarityMetricType.Ip, Optional consistencyLevel As ConsistencyLevel = Milvus.Client.ConsistencyLevel.Session, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

host
String

The hostname or IP address to connect to.

port
Int32

The port to connect to. Defaults to 19530.

ssl
Boolean

Whether to use TLS/SSL. Defaults to false.

database
String

The database to connect to. Defaults to the default Milvus database.

indexName
String

The name of the index to use. Defaults to Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore.DefaultIndexName.

vectorSize
Int32

The size of the vectors used in Milvus. Defaults to 1536.

metricType
Milvus.Client.SimilarityMetricType

The metric used to measure similarity between vectors. Defaults to Milvus.Client.SimilarityMetricType.Ip.

consistencyLevel
Milvus.Client.ConsistencyLevel

The consistency level to be used in the search. Defaults to Milvus.Client.ConsistencyLevel.Session.

loggerFactory
ILoggerFactory

An optional logger factory through which the Milvus client will log.

Applies to

MilvusMemoryStore(String, String, Int32, Boolean, String, String, Int32, SimilarityMetricType, ConsistencyLevel, ILoggerFactory)

Creates a new MilvusMemoryStore, connecting to the given hostname on the default Milvus port of 19530. For more advanced configuration opens, construct a Milvus.Client.MilvusClient instance and pass it to MilvusMemoryStore(MilvusClient, String, Int32, SimilarityMetricType, ConsistencyLevel).

public MilvusMemoryStore (string host, string apiKey, int port = 19530, bool ssl = false, string? database = default, string? indexName = default, int vectorSize = 1536, Milvus.Client.SimilarityMetricType metricType = Milvus.Client.SimilarityMetricType.Ip, Milvus.Client.ConsistencyLevel consistencyLevel = Milvus.Client.ConsistencyLevel.Session, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore : string * string * int * bool * string * string * int * Milvus.Client.SimilarityMetricType * Milvus.Client.ConsistencyLevel * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore
Public Sub New (host As String, apiKey As String, Optional port As Integer = 19530, Optional ssl As Boolean = false, Optional database As String = Nothing, Optional indexName As String = Nothing, Optional vectorSize As Integer = 1536, Optional metricType As SimilarityMetricType = Milvus.Client.SimilarityMetricType.Ip, Optional consistencyLevel As ConsistencyLevel = Milvus.Client.ConsistencyLevel.Session, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

host
String

The hostname or IP address to connect to.

apiKey
String

An API key to be used for authentication, instead of a username and password.

port
Int32

The port to connect to. Defaults to 19530.

ssl
Boolean

Whether to use TLS/SSL. Defaults to false.

database
String

The database to connect to. Defaults to the default Milvus database.

indexName
String

The name of the index to use. Defaults to Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore.DefaultIndexName.

vectorSize
Int32

The size of the vectors used in Milvus. Defaults to 1536.

metricType
Milvus.Client.SimilarityMetricType

The metric used to measure similarity between vectors. Defaults to Milvus.Client.SimilarityMetricType.Ip.

consistencyLevel
Milvus.Client.ConsistencyLevel

The consistency level to be used in the search. Defaults to Milvus.Client.ConsistencyLevel.Session.

loggerFactory
ILoggerFactory

An optional logger factory through which the Milvus client will log.

Applies to

MilvusMemoryStore(String, String, String, Int32, Boolean, String, String, Int32, SimilarityMetricType, ConsistencyLevel, ILoggerFactory)

Creates a new MilvusMemoryStore, connecting to the given hostname on the default Milvus port of 19530. For more advanced configuration opens, construct a Milvus.Client.MilvusClient instance and pass it to MilvusMemoryStore(MilvusClient, String, Int32, SimilarityMetricType, ConsistencyLevel).

public MilvusMemoryStore (string host, string username, string password, int port = 19530, bool ssl = false, string? database = default, string? indexName = default, int vectorSize = 1536, Milvus.Client.SimilarityMetricType metricType = Milvus.Client.SimilarityMetricType.Ip, Milvus.Client.ConsistencyLevel consistencyLevel = Milvus.Client.ConsistencyLevel.Session, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore : string * string * string * int * bool * string * string * int * Milvus.Client.SimilarityMetricType * Milvus.Client.ConsistencyLevel * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore
Public Sub New (host As String, username As String, password As String, Optional port As Integer = 19530, Optional ssl As Boolean = false, Optional database As String = Nothing, Optional indexName As String = Nothing, Optional vectorSize As Integer = 1536, Optional metricType As SimilarityMetricType = Milvus.Client.SimilarityMetricType.Ip, Optional consistencyLevel As ConsistencyLevel = Milvus.Client.ConsistencyLevel.Session, Optional loggerFactory As ILoggerFactory = Nothing)

Parameters

host
String

The hostname or IP address to connect to.

username
String

The username to use for authentication.

password
String

The password to use for authentication.

port
Int32

The port to connect to. Defaults to 19530.

ssl
Boolean

Whether to use TLS/SSL. Defaults to false.

database
String

The database to connect to. Defaults to the default Milvus database.

indexName
String

The name of the index to use. Defaults to Microsoft.SemanticKernel.Connectors.Milvus.MilvusMemoryStore.DefaultIndexName.

vectorSize
Int32

The size of the vectors used in Milvus. Defaults to 1536.

metricType
Milvus.Client.SimilarityMetricType

The metric used to measure similarity between vectors. Defaults to Milvus.Client.SimilarityMetricType.Ip.

consistencyLevel
Milvus.Client.ConsistencyLevel

The consistency level to be used in the search. Defaults to Milvus.Client.ConsistencyLevel.Session.

loggerFactory
ILoggerFactory

An optional logger factory through which the Milvus client will log.

Applies to