MCPcopy Create free account
hub / github.com/BeastyZ/ConvSearch-R1 / format_nl_query

Function format_nl_query

index/dense/utils.py:228–236  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

226 return False
227
228def format_nl_query(query):
229 query = query.replace("?", "")
230 query = query.replace("\\", "")
231 query = query.replace("\"", "")
232 if is_nl_query(query):
233 query = query[0].upper() + query[1:] + "?"
234 else:
235 query = query[0].upper() + query[1:] + "."
236 return query

Callers

nothing calls this directly

Calls 1

is_nl_queryFunction · 0.85

Tested by

no test coverage detected