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."),
)
| 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") |
| 307 | def 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)] |
nothing calls this directly
no test coverage detected