Ask a RAG question over the local wiki.
(
question: str = typer.Argument(..., help="Question to ask over the local wiki."),
user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."),
limit: int = typer.Option(8, "--limit", help="Maximum number of snippets to cite."),
json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."),
)
| 327 | json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."), |
| 328 | ) -> None: |
| 329 | """Build keyword topic nodes from paper nodes.""" |
| 330 | args = ["topics", "--user-id", user_id, "--min-count", str(min_count), "--limit", str(limit)] |
| 331 | if json_output: |
| 332 | args.append("--json") |
| 333 | raise typer.Exit(code=_run_wiki(*args)) |
| 334 | |
| 335 | |
| 336 | @wiki_app.command("ask") |
| 337 | def wiki_ask( |
| 338 | question: str = typer.Argument(..., help="Question to ask over the local wiki."), |
| 339 | user_id: str = typer.Option(..., "--user-id", "-u", help="PaperFlow user ID."), |
| 340 | limit: int = typer.Option(8, "--limit", help="Maximum number of snippets to cite."), |
| 341 | json_output: bool = typer.Option(False, "--json", help="Print JSON instead of text."), |
| 342 | ) -> None: |
nothing calls this directly
no test coverage detected