mzh
CCConvex Community
•Created by mzh on 1/30/2024 in #show-and-tell
An OSS clone of perplexity.ai / phind.com with convex!
Would you want it considered for a template on convex.dev/templatesTo make sure it's suitable as a scaffold, it would probably be beneficial to refactor the front end to utilize shadcn/ui for its simplicity and minimalistic aesthetic, along with employing a copy-paste approach for quick modifications. Although I might not be able to undertake this task in the near future, I will keep it in mind and consider it as an opportunity to learn more about shadcn/ui + tailwind
One question - the cron to calculate embeddings for searches - why not do that in rag after doing updateContent ? At that point it won't be interfering with user perceived latency, and that way it'd be updated right away, instead of later on. Btw getSearchesWithoutQueryEmbeddings uses a filter which scans rows, so will fail after ~10k documents searches are in the table. You could use an index, but if you just write the embedding immediately I think this function can go away.It was added as back-filling logic during the hackathon. Right it would be cleaner to simply schedule the embedding when creating the query.
5 replies