Skip to content

fix: convert deeprag citations to cas citation [JAR-9311] [JAR-9348]#626

Merged
JoshParkSJ merged 1 commit intomainfrom
josh/cas-deeprag-citations
Feb 25, 2026
Merged

fix: convert deeprag citations to cas citation [JAR-9311] [JAR-9348]#626
JoshParkSJ merged 1 commit intomainfrom
josh/cas-deeprag-citations

Conversation

@JoshParkSJ
Copy link
Contributor

@JoshParkSJ JoshParkSJ commented Feb 24, 2026

changes

  • convert deeprag output result to use CAS citation format to improve citation accuracy
  • add citation support for convo agent output (used for agent builder eval)

backing research

note

  • with langchain message.artifact, we could have users see the DeepRAG tool response (which is more user friendly) instead of the CAS inline citation format, but that makes it harder for technical folks to debug. Got confirmation from tuan that showing the cas inline citation format for deeprag is okay. But we can easily change our mind later if we want (it's like ~10 lines of change)

https://uipath.atlassian.net/browse/JAR-9311
https://uipath.atlassian.net/browse/JAR-9348

Deeprag
Screenshot 2026-02-25 at 9 49 04 AM

No regression on normal citations
Screenshot 2026-02-25 at 9 52 23 AM

logger.warning(
"Failed to transform DeepRag citations, returning raw result", exc_info=True
)
return result
Copy link
Contributor Author

@JoshParkSJ JoshParkSJ Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going with wrapper instead of passing in is_conversational down tool creation pipeline (which means updating params for 3 methods) - also follows existing batch_transform wrapper pattern

@JoshParkSJ JoshParkSJ force-pushed the josh/cas-deeprag-citations branch 3 times, most recently from 65a4e1d to 017816f Compare February 24, 2026 19:31
@JoshParkSJ JoshParkSJ marked this pull request as ready for review February 24, 2026 19:37
@JoshParkSJ JoshParkSJ force-pushed the josh/cas-deeprag-citations branch 4 times, most recently from 82c34b2 to 8dfdd2b Compare February 25, 2026 15:11
Copy link
Collaborator

@bai-uipath bai-uipath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks!

@JoshParkSJ JoshParkSJ force-pushed the josh/cas-deeprag-citations branch from 8dfdd2b to 2e60e2e Compare February 25, 2026 20:23
@JoshParkSJ JoshParkSJ force-pushed the josh/cas-deeprag-citations branch from 2e60e2e to 9d4e9af Compare February 25, 2026 21:27
@JoshParkSJ JoshParkSJ merged commit 486b9fc into main Feb 25, 2026
39 checks passed
@JoshParkSJ JoshParkSJ deleted the josh/cas-deeprag-citations branch February 25, 2026 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants