(node: Dict[str, Any])
| 121 | |
| 122 | |
| 123 | def _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 | |
| 135 | def init_wiki_schema() -> None: |
no test coverage detected