Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 1.1 KB

File metadata and controls

46 lines (26 loc) · 1.1 KB

Complex data

This playground is about using complex data structures like knowledge graphs, onthologies and teaching models how to leverage and generate complex data structures.

graphs

Knowledge graphs

Use a model to create a knowledge graph to answer a question

python knowledge-graphs.py

Take a look at the generated svg image

Using Onthologies for structured domain knowledge

Use a vision model to create an onthology in OWL format based on pictures

python create_onthologies.py 

Check out screws.xml

Give a model access to an onthology to structure its response in the knowledge of a domain

python use-onthology.py

Take a look at the output

Processing documents for specific values

Take a look at the invoice example sample invoic, the expected invoice xml schema and some explaination about the expected xml format.

python parse_invoice.py 

Check out invoice_parsed.xml to see which kind of details the model was able to extract