Partager via


PostgresMemoryStore Constructors

Definition

Overloads

PostgresMemoryStore(IPostgresDbClient)

Initializes a new instance of the PostgresMemoryStore class.

PostgresMemoryStore(NpgsqlDataSource, Int32, String)

Initializes a new instance of the PostgresMemoryStore class.

PostgresMemoryStore(String, Int32, String)

Initializes a new instance of the PostgresMemoryStore class.

PostgresMemoryStore(IPostgresDbClient)

Initializes a new instance of the PostgresMemoryStore class.

public PostgresMemoryStore (Microsoft.SemanticKernel.Connectors.Postgres.IPostgresDbClient postgresDbClient);
new Microsoft.SemanticKernel.Connectors.Postgres.PostgresMemoryStore : Microsoft.SemanticKernel.Connectors.Postgres.IPostgresDbClient -> Microsoft.SemanticKernel.Connectors.Postgres.PostgresMemoryStore
Public Sub New (postgresDbClient As IPostgresDbClient)

Parameters

postgresDbClient
IPostgresDbClient

An instance of IPostgresDbClient.

Applies to

PostgresMemoryStore(NpgsqlDataSource, Int32, String)

Initializes a new instance of the PostgresMemoryStore class.

public PostgresMemoryStore (Npgsql.NpgsqlDataSource dataSource, int vectorSize, string schema = "public");
new Microsoft.SemanticKernel.Connectors.Postgres.PostgresMemoryStore : Npgsql.NpgsqlDataSource * int * string -> Microsoft.SemanticKernel.Connectors.Postgres.PostgresMemoryStore
Public Sub New (dataSource As NpgsqlDataSource, vectorSize As Integer, Optional schema As String = "public")

Parameters

dataSource
Npgsql.NpgsqlDataSource

Postgres data source.

vectorSize
Int32

Embedding vector size.

schema
String

Database schema of collection tables.

Applies to

PostgresMemoryStore(String, Int32, String)

Initializes a new instance of the PostgresMemoryStore class.

public PostgresMemoryStore (string connectionString, int vectorSize, string schema = "public");
new Microsoft.SemanticKernel.Connectors.Postgres.PostgresMemoryStore : string * int * string -> Microsoft.SemanticKernel.Connectors.Postgres.PostgresMemoryStore
Public Sub New (connectionString As String, vectorSize As Integer, Optional schema As String = "public")

Parameters

connectionString
String

Postgres database connection string.

vectorSize
Int32

Embedding vector size.

schema
String

Database schema of collection tables.

Applies to