[GH-ISSUE #3209] [FEAT]: api/v1/workspace/*/stream-chat sources + Citations #2064

Closed
opened 2026-02-22 18:27:59 -05:00 by yindo · 6 comments
Owner

Originally created by @jiang666 on GitHub (Feb 14, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3209

Originally assigned to: @shatfield4 on GitHub.

What would you like to see?

The sources field in the response of the window api/v1/workspace/proshine/stream-chat interface contains a large amount of data. How can I configure the response to exclude this data? Additionally, on the chat settings in the window, I do not see an option to disable the display of references or a close button.

Originally created by @jiang666 on GitHub (Feb 14, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3209 Originally assigned to: @shatfield4 on GitHub. ### What would you like to see? The sources field in the response of the window api/v1/workspace/proshine/stream-chat interface contains a large amount of data. How can I configure the response to exclude this data? Additionally, on the chat settings in the window, I do not see an option to disable the display of references or a close button.
yindo added the enhancementfeature request labels 2026-02-22 18:27:59 -05:00
yindo closed this issue 2026-02-22 18:27:59 -05:00
Author
Owner

@timothycarambat commented on GitHub (Feb 14, 2025):

As far as the API goes, why cant you just ignore those fields and/or nullify them? Can i understand more about what you want to do?

Hiding citations is tricky because then it becomes impossible to tell a hallucinations vs a referenced answer and I can only see downsides to support that use case.

@timothycarambat commented on GitHub (Feb 14, 2025): As far as the API goes, why cant you just ignore those fields and/or nullify them? Can i understand more about what you want to do? Hiding citations is tricky because then it becomes impossible to tell a hallucinations vs a referenced answer and I can only see downsides to support that use case.
Author
Owner

@jiang666 commented on GitHub (Feb 14, 2025):

n the streaming responses, each returned data chunk includes the same reference files, resulting in excessively large interface payloads. If it's not possible to configure the response to exclude this data, could these references be consolidated into the final token data block instead? Alternatively, allowing clients to add a parameter like "sources": false in the request to dynamically suppress this field would provide greater flexibility.

@jiang666 commented on GitHub (Feb 14, 2025): n the streaming responses, each returned data chunk includes the same reference files, resulting in excessively large interface payloads. If it's not possible to configure the response to exclude this data, could these references be consolidated into the final token data block instead? Alternatively, allowing clients to add a parameter like "sources": false in the request to dynamically suppress this field would provide greater flexibility.
Author
Owner

@Gangdanww-z commented on GitHub (Mar 6, 2025):

Yes, I have this question, too.

@Gangdanww-z commented on GitHub (Mar 6, 2025): Yes, I have this question, too.
Author
Owner

@Alalakii commented on GitHub (Mar 19, 2025):

+1 to this request. Maybe you can expose API argument saying no "source" returned from the response. It really helps for some small programs to run on mobile device.

@Alalakii commented on GitHub (Mar 19, 2025): +1 to this request. Maybe you can expose API argument saying no "source" returned from the response. It really helps for some small programs to run on mobile device.
Author
Owner

@arjankapteijn commented on GitHub (Aug 13, 2025):

+! to this request.

@arjankapteijn commented on GitHub (Aug 13, 2025): +! to this request.
Author
Owner

@timothycarambat commented on GitHub (Sep 17, 2025):

When i send a POST to http://localhost:3001/api/v1/workspace/sample/stream-chat I get back each chunk with no sources - only the last one with the finalizeResponseStream having the citations.

What provider are you using? Could be a detail about the provider specifically and not the API

@timothycarambat commented on GitHub (Sep 17, 2025): When i send a POST to `http://localhost:3001/api/v1/workspace/sample/stream-chat` I get back each chunk with no sources - only the last one with the `finalizeResponseStream` having the citations. What provider are you using? Could be a detail about the provider specifically and not the API
yindo changed title from [FEAT]: api/v1/workspace/*/stream-chat sources + Citations to [GH-ISSUE #3209] [FEAT]: api/v1/workspace/*/stream-chat sources + Citations 2026-06-05 14:44:19 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2064