import { ConfigService } from "@nestjs/config"; import { TokenUsageInterface } from "../../../common/interfaces/token.usage.interface"; import { BaseConfigInterface } from "../../../config/interfaces"; import { ModelService } from "../../../core/llm/services/model.service"; import { Chunk } from "../../../foundations/chunk/entities/chunk.entity"; export declare const defaultMapPrompt = "Summarize the following content using clean markdown formatting.\n\nIMPORTANT: Output ONLY the summary content directly. Do NOT include:\n- Introductory phrases like \"Here is a summary\"\n- Meta-commentary about what you're doing\n- Unnecessary horizontal rules or separators\n\nJust write the summary content itself.\n\n{context}"; export declare const defaultCombinePrompt = "Based on the following summaries, write a consolidated summary that integrates all the main themes and key points.\n\n{text}\n\nIMPORTANT: Output ONLY the summary content directly. Do NOT include:\n- Introductory phrases like \"Here is a summary\"\n- Meta-commentary about what you're doing\n- Unnecessary horizontal rules or separators\n- Any reference to the fact that you are synthesizing summaries\n\nWrite directly about the content subject. Use well-structured markdown with appropriate headings, bullet points, and emphasis."; export declare const defaultTldrPrompt = "Create a single concise sentence (maximum 20 words) that captures the essential point of this summary:\n\n{summary}"; /** * How many per-chunk map calls may be in flight at once. The map phase fans out * one LLM call per chunk; unbounded, a long document opens hundreds of provider * requests simultaneously (DNS bursts, and every prompt live in the heap at the * same time). 8 keeps the provider saturated without either failure mode. */ export declare const SUMMARISER_MAP_CONCURRENCY = 8; export declare class SummariserService { private readonly modelService; private readonly configService; private readonly mapPromptText; private readonly combinePromptText; private readonly tldrPromptText; private readonly summariserConfig?; constructor(modelService: ModelService, configService: ConfigService); summarise(params: { chunks: Chunk[]; }): Promise<{ content: string; tldr: string; tokens: TokenUsageInterface; }>; } //# sourceMappingURL=summariser.service.d.ts.map