related-sciences / nxontology-ml

Machine learning to classify ontology nodes
Apache License 2.0
6 stars 0 forks source link

Handle cases where input node is duplicated in output completion #20

Closed yonromai closed 12 months ago

yonromai commented 12 months ago

Because of the node batching logic in the prompt, some nodes might be duplicated in the GPT-4 output. This PR handles this case.

@dhimmel: Feel free to take a look. Merging since small & probably uncontroversial PR.