Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nlweb-ai/NLWeb
/ clean_utf8
Function
clean_utf8
AskAgent/python/misc/embedding.py:39–40 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
37
return
None
38
39
def
clean_utf8(text):
40
return
text.encode(
'utf-8'
, errors=
'ignore'
).decode(
'utf-8'
)
41
42
def
process_files(input_file, size=
"small"
, model=
"text-embedding-3-small"
, num_to_process=10000000):
43
num_done = 0
Callers
1
process_files
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected