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

Function wiki_topics

paperflow/cli.py:315–325  ·  view source on GitHub ↗

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."),
)

Source from the content-addressed store, hash-verified

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")
323def 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:

Callers

nothing calls this directly

Calls 1

_run_wikiFunction · 0.85

Tested by

no test coverage detected