Skip to content

Add weather update #204

Open
Open

Description

@aashutosh-samagra
  • 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

Activity

  1. aashutosh-samagra commented on Jan 4, 2024

    @aashutosh-samagra
    Author

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

  2. techsavvyash commented on Jan 7, 2024

    @techsavvyash
    Member

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

  3. aashutosh-samagra commented on Jan 8, 2024

    @aashutosh-samagra
    Author

    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
  4. Gautam-Rajeev commented on Jan 9, 2024

    @Gautam-Rajeev

    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.

  5. aashutosh-samagra commented on Jan 15, 2024

    @aashutosh-samagra
    Author
    • 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
  6. aashutosh-samagra commented on Jan 17, 2024

    @aashutosh-samagra
    Author
  7. techsavvyash commented on Jan 18, 2024

    @techsavvyash
    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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions