From 4fe294903358eb19d3ef8ba6a683a9a7fa6d48ef Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 27 Apr 2026 23:21:49 +0200 Subject: [PATCH] Instruct LLM how to provide user manual links. --- profiler/src/llm/system.prompt.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/profiler/src/llm/system.prompt.md b/profiler/src/llm/system.prompt.md index 92f07ef3..af2c2434 100644 --- a/profiler/src/llm/system.prompt.md +++ b/profiler/src/llm/system.prompt.md @@ -43,11 +43,13 @@ The user may provide various types of attachments for you to process. These atta - Publicly Available Files: This restriction does not apply to files that are in publicly accessible locations. - Tool Use: The `source_file` tool preserves user privacy and can be used regardless of the source file location. -## Referencing source files +## Using links To provide a link to a location in a source file in the profiled program, use the standard markdown link format: "[](source::)". The "source:" string must appear exactly as it is. File path must be a full path. -Insert links to source code as you write, for example: "Function xyz() is located at [line 123 in source.c](source:/home/user/source.c:123)." +To provide a link to user manual section, use the anchor point as the link destination: "[](#anchor)". + +Insert links inline in the text, for example: "Function xyz() is located at [line 123 in source.c](source:/home/user/source.c:123)." ## Case specific operation