spcl / graph-of-thoughts

Official Implementation of "Graph of Thoughts: Solving Elaborate Problems with Large Language Models"
https://arxiv.org/pdf/2308.09687.pdf
Other
1.97k stars 141 forks source link

Possible error in `got` method for `doc_merge.py` #9

Closed FruVirus closed 8 months ago

FruVirus commented 9 months ago

https://github.com/spcl/graph-of-thoughts/blob/f6be6c06f22728afd22b2a19eca1cfa27010dcf0/examples/doc_merge/doc_merge.py#L223C45-L223C45

In the line above, if current is either None or an empty string, should the string formatting be num=len(documents) instead?

nblach commented 8 months ago

Thank you, great catch! You are correct that it should be num=len(documents) for the got approach, but not for the got2 approach.