MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _node_embedding_text

Function _node_embedding_text

skills/wiki-store/scripts/wiki_db.py:123–132  ·  view source on GitHub ↗
(node: Dict[str, Any])

Source from the content-addressed store, hash-verified

121
122
123def _node_embedding_text(node: Dict[str, Any]) -> str:
124 return "\n".join(
125 part
126 for part in (
127 str(node.get("title") or ""),
128 str(node.get("keywords") or ""),
129 str(node.get("body") or "")[:4000],
130 )
131 if part.strip()
132 )
133
134
135def init_wiki_schema() -> None:

Callers 1

embed_nodes_for_userFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected