Hi, so recently I managed to make a chatbot using gpt-3.5 api with long-term memory (using semantic search).
So i want to have multiple users for my chatbot, each of the user has like its user_id. But then the problem is, how store the vectors in the db for different users?
Each of my logs has its uuid.json, and I stored it in user_id/uuid.json, so each user can have their own logs folder. But now the problem is just the vector though, since in pinecone it can only upsert (id, vector), hence the idea was to only upsert either user_id or uuid, but both of these just don’t work and result in conflicting matches.
Thank you, looking forward to hear from the people here who has experience in embeddings
EDIT:
I made it work by using metadata filtering.
vdb.upsert((id, vector, metadata))
vdb.query(vector=vector, top_k=15, filter={"user_id":{"$eq":user_id}}, include_metadata=True)