feat: Update LLM context handling and prompt template for improved clarity and legacy support

This commit is contained in:
JB
2025-10-26 10:04:36 -07:00
parent 7951a4d992
commit a81ed70b14
4 changed files with 27 additions and 4 deletions
+2 -1
View File
@@ -727,12 +727,13 @@ def _normalize_with_llm(
normalized_lines.append(line_body + newline)
continue
paragraph_context = core
rewritten_sentences: List[str] = []
for sentence in sentences:
prompt_context = {
"text": sentence,
"sentence": sentence,
"paragraph": sentence,
"paragraph": paragraph_context,
}
prompt = _render_mustache(prompt_template, prompt_context)
completion = generate_completion(