ibrahimyaacobI
Convex Community12mo ago
2 replies
ibrahimyaacob

best way to build ai chat with infinite memory with vector search ?

Hi, need some advice here.
i just want a simple infinite memory group chat, no file/image or pdf upload needed.
there'll be tables like

1. sessions
2. sessionUsers
3. messages

im thinking to create a vectorIndex on the message table.
looking at api, it have search the table by embedding which will return me list matching record (id & score)

right now I'm struggling to connect the dots here. How do I perform the vector search so that it would able to identify that which message belongs to who & when it is sent.
Was this page helpful?