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

Function wiki_embed

paperflow/cli.py:299–311  ·  view source on GitHub ↗

Embed wiki nodes for vector search.

(
    user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
    force: bool = typer.Option(False, "--force", help="Recompute existing embeddings."),
    limit: int = typer.Option(500, "--limit", help="Maximum number of nodes to embed."),
    json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."),
)

Source from the content-addressed store, hash-verified

297 json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."),
298) -> None:
299 """Show local wiki node, edge, and citation counts."""
300 args = ["stats", "--user-id", user_id]
301 if json_output:
302 args.append("--json")
303 raise typer.Exit(code=_run_wiki(*args))
304
305
306@wiki_app.command("embed")
307def wiki_embed(
308 user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
309 force: bool = typer.Option(False, "--force", help="Recompute existing embeddings."),
310 limit: int = typer.Option(500, "--limit", help="Maximum number of nodes to embed."),
311 json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."),
312) -> None:
313 """Embed wiki nodes for vector search."""
314 args = ["embed", "--user-id", user_id, "--limit", str(limit)]

Callers

nothing calls this directly

Calls 1

_run_wikiFunction · 0.85

Tested by

no test coverage detected