You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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
@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 :
First question always goes through classifier and NER
All following questions also go through classifier and NER
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.
Our classifier already returns if a question is about price.
Our NER model already figures out crop.
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.
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
Activity
aashutosh-samagra commentedon Jan 4, 2024
@aashutosh-samagra to add format
@ChakshuGautam to add flowchart
techsavvyash commentedon Jan 7, 2024
https://github.com/AmakrushAI/bff/pull/183 -- bff PR for weather update feature.
aashutosh-samagra commentedon Jan 8, 2024
Weather report frontend view 🌈
Gautam-Rajeev commentedon Jan 9, 2024
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 :
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.
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 commentedon Jan 15, 2024
aashutosh-samagra commentedon Jan 17, 2024
techsavvyash commentedon Jan 18, 2024