feat(knowledge): include sourceUrl in KB search results (#4533)

* feat(knowledge): include sourceUrl in KB search results

* improvement(kb-search): mark sourceUrl nullable and cover non-null happy path in tests
This commit is contained in:
Waleed
2026-05-08 23:08:52 -07:00
committed by GitHub
parent d0b0ede39e
commit cb3a876d3e
11 changed files with 105 additions and 30 deletions
+6
View File
@@ -5030,6 +5030,7 @@
{
"documentId": "doc_abc123",
"documentName": "Getting Started.pdf",
"sourceUrl": "https://example.atlassian.net/wiki/spaces/DOCS/pages/12345",
"content": "To reset your password, go to Settings > Security.",
"chunkIndex": 3,
"similarity": 0.95,
@@ -6264,6 +6265,11 @@
"type": "string",
"description": "Filename of the source document."
},
"sourceUrl": {
"type": "string",
"nullable": true,
"description": "URL to the original source document for connector-synced documents (e.g., a Confluence page, Google Doc, or Notion page). Null for documents without an external source."
},
"content": {
"type": "string",
"description": "The matched chunk content."