FeatureFuel
2

[Feature Request] Add detailed debug logging for RAG/LLM requests

Source: paperless-ngx/paperless-ngx#13644 · opened by @JP95Git
Description

The current debug logging for the RAG chat only logs the user's query, for example:

[DEBUG] [paperless_ai.chat] Document chat query: ...

This makes troubleshooting provider-side issues difficult. For example, when a RAG request takes an unusually long time, it is currently hard to determine whether the delay occurs inside Paperless or while waiting for the AI provider.

A similar feature request is here:


When debug logging is enabled, provide a detailed but safe log of AI provider requests and responses.

For example:



The logging should contain enough information to correlate requests with provider-side logs and diagnose latency or API errors, while avoiding sensitive data such as API keys, document contents, full prompts, or generated responses.

Other

_No response_

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests