Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

thanks for the feedback breck, I'm glad to hear you were able to get the playground running!

the examples do need a bit more polish for clarity & to point out each of the language features they're demonstrating. there are 7 examples there which go through 90% of features, although I'm not sure if it's obvious you can scroll to the right to see more tabs?

in the case of extracting data from lists -- first, select a list of the common parent (using the `=>` expanding list drill you had used), and then use a regular drill (->) into each item to select data from elements in the list, e.g.

    GET https://breckyunits.com

    extract {
      title
      posts: => .scrollSnippetContainer -> {
        title: h1
        url: a -> @link
        date?: .scrollDateline
      }
    }
https://getlang.dev/query?NY1RCsIwEET/9xR7AVv8DVgFFQ+gF4hxoa...

agree fully with your classification of open/closed data. this project was born from the desire to make data from the second cohort more open & accessible, in the hopes of progressing what the web can be, and putting power back to into the hands of users in terms of how/when they interact with web data.

once the documentation is done, it would be great to see whether I can train a model to produce getlang queries through natural language, e.g. you provide the AI with a URL and a list of data points to retrieve; and it generates queries & tests them for completeness and accuracy before committing them to shared library of queries.

thanks again for taking a look, let me know if you need a hand with writing queries or if you have any followup thoughts! matt.



> once the documentation is done, it would be great to see whether I can train a model to produce getlang queries through natural language, e.g. you provide the AI with a URL and a list of data points to retrieve; and it generates queries & tests them for completeness and accuracy before committing them to shared library of queries.

Ah great idea. You should be able to try this right now as well with modern context sizes. Looking forward to see how that develops!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: