proton icon indicating copy to clipboard operation
proton copied to clipboard

feat: add a sentimental analysis demo using Proton to the examples

Open varshith257 opened this issue 1 year ago • 7 comments

PR checklist:

  • Did you run ClangFormat ?
  • Did you separate headers to a different section in existing community code base ?
  • Did you surround proton: starts/ends for new code in existing community code base ?

Please write user-readable short description of the changes: Part of #527

varshith257 avatar Jul 03 '24 20:07 varshith257

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Jul 03 '24 20:07 CLAassistant

@jovezhong Can I proceed with this example? I would like to hear your thoughts on this

varshith257 avatar Jul 03 '24 20:07 varshith257

Hi @varshith257 , thanks for contributing more demos for Timeplus Proton. Yes, you can go ahead prepare the PR with testing data, SQL, or even visualization and alerts. When the PR is ready to review, you will be rewarded once and when it's merged there will be more rewards.

A few suggestions to make the demo more relevant and impressive:

  • considering using live data, instead of a static data such as CSV. The data can be mocked data or real data in the internet (I used to build a demo with twitter data, but Elon Mask he changed the pricing a lot). You may try some RAG tool to get data from hackernews/reddits or other sources
  • considering using a sophisticated sentiment analysis algo, not just if/else, or regex match. You may run Proton locally and build a REST API with other tools then register that service as a remote UDF, or build that logic with JavaScript UDF.

Feel free to ask question in Discussion tab or report bugs/feature-request in this ticket or new tickets. Look forward to your PR

jovezhong avatar Jul 04 '24 00:07 jovezhong

@jovezhong How's about using the BERT model? I have used it for a recent project done in a hackathon :)

varshith257 avatar Jul 04 '24 05:07 varshith257

I am not that familiar with BERT but my impression is it is quite common. Feel free to try it and let us know any progress or challenge.

jovezhong avatar Jul 04 '24 07:07 jovezhong

Maybe the challenge I forsee is of integration of Proton and BERT Model responses. Ahh, I will connect you in slack if I encounter any challenges

varshith257 avatar Jul 04 '24 07:07 varshith257

Hi @varshith257 , just to check whether there is anything we can help on the blog or demo

jovezhong avatar Aug 01 '24 01:08 jovezhong