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

Function wiki_ask

paperflow/cli.py:329–339  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_run_wikiFunction · 0.85

Tested by

no test coverage detected