Build keyword topic nodes from paper nodes.
(
user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
min_count: int = typer.Option(2, "--min-count", help="Minimum keyword frequency."),
limit: int = typer.Option(50, "--limit", help="Maximum number of topics to create."),
json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."),
)
| 313 | """Embed wiki nodes for vector search.""" |
| 314 | args = ["embed", "--user-id", user_id, "--limit", str(limit)] |
| 315 | if force: |
| 316 | args.append("--force") |
| 317 | if json_output: |
| 318 | args.append("--json") |
| 319 | raise typer.Exit(code=_run_wiki(*args)) |
| 320 | |
| 321 | |
| 322 | @wiki_app.command("topics") |
| 323 | def wiki_topics( |
| 324 | user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."), |
| 325 | min_count: int = typer.Option(2, "--min-count", help="Minimum keyword frequency."), |
| 326 | limit: int = typer.Option(50, "--limit", help="Maximum number of topics to create."), |
| 327 | json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."), |
| 328 | ) -> None: |
nothing calls this directly
no test coverage detected