• kamiheku@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    The reality is, though, that there are no such APIs. LLMs on the other hand could be a valid tool for the use case.

    • Semi-Hemi-Lemmygod@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      It’s not that there’s no API. It’s that there’s probably a different API for every single grocery store. And they make random changes and don’t have public documentation. That’s why we need the AI.

      • FaceDeer@fedia.io
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        Indeed. LLMs read with the same sort of comprehension that humans have, so if a supermarket makes their website compatible with humans then it’s also compatible with LLMs. We have the same “API”, as it were.

        • gardylou@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          edit-2
          1 month ago

          LLMs can read the website, but I’d argue its comprehension works VERY differently than human comprehension. If I ask you whats the price of a Banapple, you’ll know that doesn’t exist. The LLM might catch that thing doesn’t exist, or it might average all the prices of all the Apple associated data it has and all the banana associated data it has, regardless of unit, and give you that averaged price, or otherwise make up a logic to deliver you a price. It doesn’t know shit about fruit in the way you intuitively understand fruit.

          • Zos_Kia@lemmynsfw.com
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            Or you could just prompt it to not guess prices for articles that don’t exist. Those models are pretty good at following instructions.

          • FaceDeer@fedia.io
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            That sounds like an issue with your system prompt. If you’re using an LLM to interpret web pages for price information then you’d want to include instructions about what to do if the information simply isn’t in the web page to begin with. If you don’t tell the AI what to do under those circumstances you can’t expect any specific behaviour because it wouldn’t know what it’s supposed to do.

            I suspect from this comment that you haven’t actually worked with LLMs much, and are just going off the general “lol they hallucinate” perception they have right now? I’ve worked with LLMs a fair bit and they very rarely have trouble interpreting what’s in their provided context (as would be the case here with web page content). Hallucinations come from relying on their own “trained” information, which they recall imperfectly and often gets a bit jumbled. To continue using a human analogy, it’s like asking someone to rely on their own memory rather than reading information from a piece of paper.

          • FaceDeer@fedia.io
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            Yup. And those that can’t can have a parser pull just the human-readable text out, like a blind person’s screen-reader would do.

      • Blackmist@feddit.uk
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 month ago

        The stores don’t want you to have easy comparable access to their prices.

        They’d quite like it if you just came in, saw that the item you wanted is out of stock, and then just buy some shit you didn’t need.

      • Joe Cool@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        You just need someone to do it. Here in Austria someone did it: https://heisse-preise.io

        It’s only in German and most of the prices aren’t from a public API but crawled from different sources.
        It’s open source. Nothing except greed is stopping them from providing something like this.

        • Semi-Hemi-Lemmygod@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 month ago

          Imagine if instead of building their own bespoke systems, grocery stores (and other places) created an open source software foundation and worked together to produce the software they needed.

          • Joe Cool@lemmy.ml
            link
            fedilink
            arrow-up
            0
            ·
            1 month ago

            I sometimes dream of such things. Less waste, better inventory, customers get to choose inventory based on their wishlist, better prices, then I wake up.

            We actually have a small liquor store nearby that really puts stuff on the shelves if you casually mention something you like. But that’s more the exception than the rule.

    • Ibaudia@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 month ago

      At the cost of huge amounts of wasted energy and the whole litany of concerns that are always co-morbid with AI, but technically yes they could work for this lol. Ideally we’d have standardized APIs and mandated pricing transparency, but unfortunately we live in a capitalist society where that will literally never happen ever.

    • zalgotext@sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      there are no such APIs

      Yes there are. You can obtain access to the Kroger API, the Meijer API, the Walmart API, and I’m sure others that I didn’t bother to Google. Failing getting access to the actual APIs, there are tons of web scraper projects that just parse those stores’ websites for product information, and web scrapers are still orders of magnitude more efficient than LLMs.