fabricatio_novel.commands.rag_illustration
RAG-augmented illustrated-novel CLI commands (comfyui + lancedb gated).
Registers onto the shared app from fabricatio_novel.cli:
Functions
|
Generate a RAG-augmented novel with ComfyUI illustrations embedded in the EPUB. |
Generate a RAG-augmented novel with mental state tracking + ComfyUI illustrations. |
Module Contents
- fabricatio_novel.commands.rag_illustration.write_rag_illustrated_novel(outline: str = OUTLINE, outline_file: pathlib.Path = OUTLINE_FILE, rag_query: str = _RAG_QUERY, output_path: pathlib.Path = OUTPUT_PATH, font_file: pathlib.Path = FONT_FILE, cover_image: pathlib.Path = COVER_IMAGE, language: str = LANGUAGE, chapter_guidance: str = CHAPTER_GUIDANCE, guidance_file: pathlib.Path = GUIDANCE_FILE, persist_dir: pathlib.Path = PERSIST_DIR, rag_limit: int = _RAG_LIMIT, use_reranker: bool = _USE_RERANKER, use_refined_query: bool = _USE_REFINE, refined_query_count: int = _REFINED_COUNT, refine_query_template: str = _REFINE_TEMPLATE, image_root: pathlib.Path = _IMAGE_ROOT, workflow_template: pathlib.Path | None = _WORKFLOW_TEMPLATE, illustration_budget: int = _ILLUST_BUDGET, illustration_language: str = _ILLUST_LANG, illustration_guideline: str = _ILLUST_GUIDELINE, illustration_guideline_file: pathlib.Path = _ILLUST_GUIDELINE_FILE, illustration_prompt_guideline: str = _ILLUST_PROMPT_GUIDELINE, illustration_prompt_guideline_file: pathlib.Path = _ILLUST_PROMPT_GUIDELINE_FILE, comfyui_timeout: float = _COMFYUI_TIMEOUT, comfyui_base_url: str = _COMFYUI_BASE_URL) None
Generate a RAG-augmented novel with ComfyUI illustrations embedded in the EPUB.
- fabricatio_novel.commands.rag_illustration.write_rag_mental_illustrated_novel(outline: str = OUTLINE, outline_file: pathlib.Path = OUTLINE_FILE, rag_query: str = _RAG_QUERY, output_path: pathlib.Path = OUTPUT_PATH, font_file: pathlib.Path = FONT_FILE, cover_image: pathlib.Path = COVER_IMAGE, language: str = LANGUAGE, chapter_guidance: str = CHAPTER_GUIDANCE, guidance_file: pathlib.Path = GUIDANCE_FILE, persist_dir: pathlib.Path = PERSIST_DIR, rag_limit: int = _RAG_LIMIT, use_reranker: bool = _USE_RERANKER, use_refined_query: bool = _USE_REFINE, refined_query_count: int = _REFINED_COUNT, refine_query_template: str = _REFINE_TEMPLATE, image_root: pathlib.Path = _IMAGE_ROOT, workflow_template: pathlib.Path | None = _WORKFLOW_TEMPLATE, illustration_budget: int = _ILLUST_BUDGET, illustration_language: str = _ILLUST_LANG, illustration_guideline: str = _ILLUST_GUIDELINE, illustration_guideline_file: pathlib.Path = _ILLUST_GUIDELINE_FILE, illustration_prompt_guideline: str = _ILLUST_PROMPT_GUIDELINE, illustration_prompt_guideline_file: pathlib.Path = _ILLUST_PROMPT_GUIDELINE_FILE, comfyui_timeout: float = _COMFYUI_TIMEOUT, comfyui_base_url: str = _COMFYUI_BASE_URL) None
Generate a RAG-augmented novel with mental state tracking + ComfyUI illustrations.