fabricatio_novel.commands.rag

RAG-augmented write-novel CLI commands (lancedb-gated).

Registers onto the shared app from fabricatio_novel.cli:

Functions

write_novel_with_rag(→ None)

Generate a novel with RAG writing style augmentation based on the provided outline.

write_novel_with_mental_rag(→ None)

Generate a novel with RAG writing styles + mental state tracking.

Module Contents

fabricatio_novel.commands.rag.write_novel_with_rag(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) None

Generate a novel with RAG writing style augmentation based on the provided outline.

fabricatio_novel.commands.rag.write_novel_with_mental_rag(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) None

Generate a novel with RAG writing styles + mental state tracking.