mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user