AmakrushAI / app

Deployed URL
https://amakrushai.samagra.io/
2 stars 5 forks source link

Add weather update #204

Open aashutosh-samagra opened 10 months ago

aashutosh-samagra commented 10 months ago
aashutosh-samagra commented 10 months ago

@aashutosh-samagra to add format @ChakshuGautam to add flowchart

techsavvyash commented 10 months ago

https://github.com/AmakrushAI/bff/pull/183 -- bff PR for weather update feature.

aashutosh-samagra commented 10 months ago

Weather report frontend view 🌈

Gautam-Rajeev commented 10 months ago

Classifier supports more classes:

@Amruth-Vamshi @techsavvyash @aashutosh-samagra Have modified flow classifier to have more outputs Check the new model here Now also classifies into 'weather' and 'price' : Label 0: agricultural_scheme Label 1: agriculture Label 2: pest Label 3: seed Label 4: weather Label 5: price

Dataset used is here

@singhalkarun, do let us know when AI-tools is redeployed, these changes will also reflect.

Change of flow in bff to allow jumping in between flows

@Amruth-Vamshi @techsavvyash Let's also modify flow to allow person to change flows in between conversations in bff. We can set this up by :

  1. First question always goes through classifier and NER
  2. All following questions also go through classifier and NER
  3. We set up a cutoff for classifier. e.g. 95% and if a follow up question is getting classifier to a different class with a high degree of accuracy, then we shift the flow to the other one. We hence maintain classifier just like we maintain NER except that the classifier class changes only if the predicted class if higher than a cutoff.
  4. NER is maintained as before

Price API :

https://api.data.gov.in/resource/9ef84268-d588-465a-a308-a864a43d0070?api-key=579b464db66ec23bdd0000010ada5882cd2746ba62df4a6e1096f9b0&format=json&limit=1000&filters%5Bstate%5D=Uttar%20Pradesh&filters%5Bdistrict%5D=Agra&filters%5Bcommodity%5D=Rice

@Amruth-Vamshi @techsavvyash Above API has been shared by @ChakshuGautam for price.

  1. Our classifier already returns if a question is about price.
  2. Our NER model already figures out crop.
  3. District is figured out from IP/geolocation Lets use both whenever 'price' comes as classifier output to get the price for that crop in that district. We want to support only very simple statements right now which already tell the district name Questions like : "What is the price for paddy in Bhubhaneshwar?"

Should be simple to build with current API setup. Lets just support for whichever crop names/district names are matching in the price API and get it working only for them by this week.

aashutosh-samagra commented 10 months ago
aashutosh-samagra commented 9 months ago
techsavvyash commented 9 months ago

Classifier issue - @GautamR-Samagra ; @techsavvyash -- this has been fixed and deployed Update NER to answer - "Give weather for Cuttack district" -- this has been added with #193