次の方法で共有


PostgresMemoryBuilderExtensions.WithPostgresMemoryStore Method

Definition

Overloads

WithPostgresMemoryStore(MemoryBuilder, IPostgresDbClient)

Registers Postgres memory connector.

WithPostgresMemoryStore(MemoryBuilder, NpgsqlDataSource, Int32, String)

Registers Postgres memory connector.

WithPostgresMemoryStore(MemoryBuilder, String, Int32, String)

Registers Postgres memory connector.

WithPostgresMemoryStore(MemoryBuilder, IPostgresDbClient)

Registers Postgres memory connector.

public static Microsoft.SemanticKernel.Memory.MemoryBuilder WithPostgresMemoryStore (this Microsoft.SemanticKernel.Memory.MemoryBuilder builder, Microsoft.SemanticKernel.Connectors.Postgres.IPostgresDbClient postgresDbClient);
static member WithPostgresMemoryStore : Microsoft.SemanticKernel.Memory.MemoryBuilder * Microsoft.SemanticKernel.Connectors.Postgres.IPostgresDbClient -> Microsoft.SemanticKernel.Memory.MemoryBuilder
<Extension()>
Public Function WithPostgresMemoryStore (builder As MemoryBuilder, postgresDbClient As IPostgresDbClient) As MemoryBuilder

Parameters

builder
MemoryBuilder

The MemoryBuilder instance.

postgresDbClient
IPostgresDbClient

Postgres database client.

Returns

Updated Memory builder including Postgres memory connector.

Applies to

WithPostgresMemoryStore(MemoryBuilder, NpgsqlDataSource, Int32, String)

Registers Postgres memory connector.

public static Microsoft.SemanticKernel.Memory.MemoryBuilder WithPostgresMemoryStore (this Microsoft.SemanticKernel.Memory.MemoryBuilder builder, Npgsql.NpgsqlDataSource dataSource, int vectorSize, string schema = "public");
static member WithPostgresMemoryStore : Microsoft.SemanticKernel.Memory.MemoryBuilder * Npgsql.NpgsqlDataSource * int * string -> Microsoft.SemanticKernel.Memory.MemoryBuilder
<Extension()>
Public Function WithPostgresMemoryStore (builder As MemoryBuilder, dataSource As NpgsqlDataSource, vectorSize As Integer, Optional schema As String = "public") As MemoryBuilder

Parameters

builder
MemoryBuilder

The MemoryBuilder instance.

dataSource
Npgsql.NpgsqlDataSource

Postgres data source.

vectorSize
Int32

Embedding vector size.

schema
String

Schema of collection tables.

Returns

Updated Memory builder including Postgres memory connector.

Applies to

WithPostgresMemoryStore(MemoryBuilder, String, Int32, String)

Registers Postgres memory connector.

public static Microsoft.SemanticKernel.Memory.MemoryBuilder WithPostgresMemoryStore (this Microsoft.SemanticKernel.Memory.MemoryBuilder builder, string connectionString, int vectorSize, string schema = "public");
static member WithPostgresMemoryStore : Microsoft.SemanticKernel.Memory.MemoryBuilder * string * int * string -> Microsoft.SemanticKernel.Memory.MemoryBuilder
<Extension()>
Public Function WithPostgresMemoryStore (builder As MemoryBuilder, connectionString As String, vectorSize As Integer, Optional schema As String = "public") As MemoryBuilder

Parameters

builder
MemoryBuilder

The MemoryBuilder instance.

connectionString
String

Postgres database connection string.

vectorSize
Int32

Embedding vector size.

schema
String

Schema of collection tables.

Returns

Updated Memory builder including Postgres memory connector.

Applies to