Skip to content

Repository files navigation

Page Inspector

About

Some work inspired by Dave's demo last week. The code in here is to see if we can read a web page into markdown and then feed it into BAML with a defined class to align the output to. The final goal is to see if we can generate JSON-LD schema.org documents for web pages.

Notes

Currently, the best place to play with BAML is in VSCode with the BAML plugin at: https://marketplace.visualstudio.com/items?itemName=Boundary.baml-extension

Learn more about BAML at: https://docs.boundaryml.com/guide/installation-language/python

You will need to set your OpenAI key

export OPENAI_API_KEY="..."

We need to modify this code to use Ollama and try out the new LLama 4 or some of the other models. So we don't need a key. You can put in new llms in the clients code.

The two functions are: ExtractDataset and ExtractPage

ExtractDataset is for processing a page with links to dataset distributions.

The ExtractPage is for a general information page.

run with:

python main.py

TODO

  • make the code multi-command
  • save state between the commands in lancedb
  • convert to JOSN-LD schema.org
  • convert and load into kuzu
    • graphrag from there

About

Test repo for looking at LLM approaches to page indexing

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages