version0chiro / x-ama

https://ask-me-anything-x.vercel.app
4 stars 5 forks source link

Feat: Database grouping of similar questions #8

Open harshil15999 opened 3 months ago

harshil15999 commented 3 months ago

Idea:

In supabase I would like to group similar questions together so it will become easier to for the admin to answer the questions and post answers to similar questions together.

Solution

  1. We will take a vector embedding for each question
  2. Create a new table with the question id, question vector mapping
  3. For similar vectors using KNN or some grouping strategy (Work in progress) we will group them together