kasnerz / factgenie

A Toolkit for Annotating and Visualizing LLM Hallucinations
MIT License
1 stars 0 forks source link

Adding LogicNLG with custom annotations #20

Closed oplatek closed 2 weeks ago

oplatek commented 2 weeks ago

The custom annotations are:

Instance of #4

oplatek commented 2 weeks ago

Gotchas and missing pieces from documentation from #21

It would be nice to walk through what the Dataset class does and reference all (the most important) places where it is used.

{
   "setup": {"id": "your_model_name or ID", "name": "your_model_name_for_users"},
   "generated: [
      {"out": "generation of your model for input example 1 which will be visualized"},
      {"out": "generation of your model for input example 2 which will be visible in Factgenie"},
      ...
      {"out": "Number of examples should match number of input data in your_dataset!"},
   ]
}

Some tips on what to debug and how to debug

# factgenie/loaders/logicnlg.py
if __name__ == "__main__":
    # Testing the loader
    d = LogicnlgTest100Tables()
    print(len(d.examples['test']))