Closed tonyzhao6 closed 1 year 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?
current
None
num=len(documents)
Thank you, great catch! You are correct that it should be num=len(documents) for the got approach, but not for the got2 approach.
got
got2
https://github.com/spcl/graph-of-thoughts/blob/f6be6c06f22728afd22b2a19eca1cfa27010dcf0/examples/doc_merge/doc_merge.py#L223C45-L223C45
In the line above, if
current
is eitherNone
or an empty string, should the string formatting benum=len(documents)
instead?