Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add weather update #204

Open
4 tasks
aashutosh-samagra opened this issue Jan 3, 2024 · 7 comments
Open
4 tasks

Add weather update #204

aashutosh-samagra opened this issue Jan 3, 2024 · 7 comments
Assignees

Comments

@aashutosh-samagra
Copy link

aashutosh-samagra commented Jan 3, 2024

  • What is the weather today sample question to be added to example questions
  • Location of the device to be fetched through GPS?
  • Weather of next 5 days to be shown
  • Parameters required for weather feature are listed here - Link
@aashutosh-samagra
Copy link
Author

aashutosh-samagra commented Jan 4, 2024

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

@techsavvyash
Copy link
Member

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

@aashutosh-samagra
Copy link
Author

aashutosh-samagra commented Jan 8, 2024

Weather report frontend view 🌈

  • Example question to have weather prompt
  • Weather report to be shown in a single table which can be scrolled to right
  • Use GOIP to get location - Link

@Gautam-Rajeev
Copy link

Gautam-Rajeev commented 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 :

  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
Copy link
Author

aashutosh-samagra commented Jan 15, 2024

  • Classifier issue - @GautamR-Samagra ; @techsavvyash
  • Odia translation for weather - @amit-s19 - Odia translation to be added on Flagsmith
  • Update NER to answer - "Give weather for Cuttack district"
  • District wise Lat Long - Link

@aashutosh-samagra
Copy link
Author

@techsavvyash
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants