MCPcopy
hub / github.com/SqueezeAILab/LLMCompiler / clean_str

Function clean_str

src/docstore/wikipedia.py:14–19  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

12
13
14def clean_str(p):
15 try:
16 return p.encode().decode("unicode-escape").encode("latin1").decode("utf-8")
17 except Exception as e:
18 print(e)
19 return p
20
21
22class ReActWikipedia(Docstore):

Callers 2

post_processMethod · 0.85
apost_processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected