EmailAgentwithMemory / app /persistance /memory_store_checkpointer_config.py
Gaykar's picture
changes
6093a7f
Raw
History Blame Contribute Delete
430 Bytes
from app.database.connection import pool
from langgraph.checkpoint.postgres import PostgresSaver
from langgraph.store.postgres import PostgresStore
from app.utils.embeddings import remote_embeddings
checkpointer = PostgresSaver(pool)
memory_store = PostgresStore(
pool,
index={
"dims": 384,
"embed": remote_embeddings,
"fields": [
"content.summary",
]
}
)