PostgreSQL
PostgreSQL
yaml
type: "io.kestra.plugin.ai.memory.PostgreSQL"Examples
yaml
id: chat_with_memory
namespace: company.ai
tasks:
- id: first
type: io.kestra.plugin.ai.rag.ChatCompletion
chatProvider:
type: io.kestra.plugin.ai.provider.GoogleGemini
modelName: gemini-2.5-flash
apiKey: "{{ kv('GEMINI_API_KEY') }}"
memory:
type: io.kestra.plugin.ai.memory.PostgreSQL
host: localhost
port: 5432
database: ai_memory
user: postgres
password: secret
tableName: my_custom_memory_table
systemMessage: You are a helpful assistant, answer concisely
prompt: "{{inputs.first}}"
Properties
database *Requiredstring
host *Requiredstring
password *Requiredstring
user *Requiredstring
drop string
Default
NEVERPossible Values
NEVERBEFORE_TASKRUNAFTER_TASKRUNmemoryId string
Default
{{ labels.system.correlationId }}messages integerstring
Default
10port integerstring
Default
5432tableName string
Default
chat_memoryttl string
Default
PT1HFormat
duration