MCPcopy Create free account
hub / github.com/Yuan-Li-FNLP/R3-RAG / single_worker

Function single_worker

tool/FlashRAG/scripts/preprocess_wiki.py:139–147  ·  view source on GitHub ↗
(docs)

Source from the content-addressed store, hash-verified

137
138
139def single_worker(docs):
140 results = []
141 for item in tqdm(docs):
142 title, text = basic_process(item[0], item[1])
143 if title is None:
144 continue
145 title = f'"{title}"'
146 results.append((title, text))
147 return results
148
149
150if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

basic_processFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected