QdrantVectorDbClient Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
QdrantVectorDbClient(String, Int32, ILoggerFactory) |
Initializes a new instance of the QdrantVectorDbClient class. |
QdrantVectorDbClient(HttpClient, Int32, String, ILoggerFactory) |
Initializes a new instance of the QdrantVectorDbClient class. |
QdrantVectorDbClient(String, Int32, ILoggerFactory)
Initializes a new instance of the QdrantVectorDbClient class.
public QdrantVectorDbClient (string endpoint, int vectorSize, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorDbClient : string * int * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorDbClient
Public Sub New (endpoint As String, vectorSize As Integer, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- endpoint
- String
The Qdrant Vector Database endpoint.
- vectorSize
- Int32
The size of the vectors used in the Qdrant Vector Database.
- loggerFactory
- ILoggerFactory
The ILoggerFactory to use for logging. If null, no logging will be performed.
Applies to
QdrantVectorDbClient(HttpClient, Int32, String, ILoggerFactory)
Initializes a new instance of the QdrantVectorDbClient class.
public QdrantVectorDbClient (System.Net.Http.HttpClient httpClient, int vectorSize, string? endpoint = default, Microsoft.Extensions.Logging.ILoggerFactory? loggerFactory = default);
new Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorDbClient : System.Net.Http.HttpClient * int * string * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.SemanticKernel.Connectors.Qdrant.QdrantVectorDbClient
Public Sub New (httpClient As HttpClient, vectorSize As Integer, Optional endpoint As String = Nothing, Optional loggerFactory As ILoggerFactory = Nothing)
Parameters
- httpClient
- HttpClient
The HttpClient instance used for making HTTP requests.
- vectorSize
- Int32
The size of the vectors used in the Qdrant Vector Database.
- endpoint
- String
The optional endpoint URL for the Qdrant Vector Database. If not specified, the base address of the HTTP client is used.
- loggerFactory
- ILoggerFactory
The ILoggerFactory to use for logging. If null, no logging will be performed.