Preserving links is useful only if their targets remain meaningful outside the original page. A Markdown export can retain a relative link such as ../reference while the retrieved chunk no longer carries enough context to resolve it. Redirects can make using the originally requested URL as the base wrong too.
I would inspect a fixture containing relative links, a fragment link, and a redirect, then store the final fetched URL alongside the requested one. Resolving targets against the correct document base during conversion would make includeLinks useful for citations and subsequent navigation, rather than merely preserving the visible link syntax.
Ahmet Özel
AI Engineer. Computer Vision, RAG and LLM agents.
Preserving links is useful only if their targets remain meaningful outside the original page. A Markdown export can retain a relative link such as ../reference while the retrieved chunk no longer carries enough context to resolve it. Redirects can make using the originally requested URL as the base wrong too.
I would inspect a fixture containing relative links, a fragment link, and a redirect, then store the final fetched URL alongside the requested one. Resolving targets against the correct document base during conversion would make includeLinks useful for citations and subsequent navigation, rather than merely preserving the visible link syntax.