mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-15 00:02:11 +02:00
feat: structured source document references in graph-rag responses (#1035)
This commit is contained in:
parent
0374098ee9
commit
e9c6a850ad
20 changed files with 568 additions and 39 deletions
15
specs/api/components/schemas/rag/Source.yaml
Normal file
15
specs/api/components/schemas/rag/Source.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
type: object
|
||||
description: |
|
||||
Source document reference. Produced by tracing the graph edges used for
|
||||
retrieval back to the documents they were extracted from.
|
||||
properties:
|
||||
uri:
|
||||
type: string
|
||||
description: Source document URI
|
||||
example: urn:document:5a90a175-9906-4dcb-b482-a8c1b6cbf9e0
|
||||
title:
|
||||
type: string
|
||||
description: Document title (empty when the document has none)
|
||||
example: Quantum Mechanics Primer
|
||||
required:
|
||||
- uri
|
||||
Loading…
Add table
Add a link
Reference in a new issue