File size: 430 Bytes
44c6641
 
 
 
 
471c5c3
44c6641
 
471c5c3
 
 
 
 
 
 
 
 
 
 
015bec7
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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", 
        ]
    }
)