Work with inline citations in Knowledge Graph responses - Writer AI Studio
Response with inline citations
This guide shows you how to work with inline citations in Knowledge Graph responses. Inline citations show which specific sources support each part of the response, enabling you to verify information and trace claims back to their origins.
Below is an example of a response from a Knowledge Graph that includes inline citations:
Acme Corp's flagship product line includes three
main categories: industrial tools, consumer
electronics, and automotive parts. The industrial
tools division offers precision manufacturing
equipment with advanced automation capabilities
[Acme-Product-Catalog.pdf](a1b2c3d4-e5f6-7890-abcd-ef1234567890).
Corresponding references array
Below is the corresponding references object that contains a direct snippet from the source file that was used to support the response:
{"files": [\
{\
"text": "Industrial Tools Division: Our precision manufacturing equipment features advanced automation capabilities with real-time monitoring systems that reduce operational downtime by up to 40% through predictive maintenance algorithms.",\
"fileId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",\
"score": 0.95,\
"page": 12,\
"cite": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"\
}\
]}
Citation format and correlation
Inline citations appear in the answer from the LLM as [source_name](identifier), where:
source_nameis the display name of the source: either the filename for files, or the page title for web sourcesidentifieris the unique identifier used to correlate with the references array
The identifier format depends on the source type:
- File sources: Uses the
citefield value, for example,[document.pdf](a1b2c3d4-e5f6-7890-abcd-ef1234567890) - Web sources: Uses the
urlfield value, for example,[Web Page Title](https://example.com/page)
Example correlation:Here’s an example showing how inline citations correlate with the references array for both file and web sources:Response text:
Acme Corp's flagship product line includes three main categories: industrial tools, consumer electronics, and automotive parts.
The industrial tools division offers precision manufacturing equipment with advanced automation capabilities
[Acme-Product-Catalog.pdf](a1b2c3d4-e5f6-7890-abcd-ef1234567890). According to recent industry analysis,
smart manufacturing adoption has increased by 40% across similar companies [Industry Trends Report](https://example.com/industry-trends).
References object:
{
"files": [\
{\
"text": "Industrial Tools Division: Our precision manufacturing equipment features advanced automation capabilities with real-time monitoring systems that reduce operational downtime by up to 40% through predictive maintenance algorithms.",\
"fileId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",\
"score": 0.95,\
"page": 12,\
"cite": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"\
}\
],
"web": [\
{\
"text": "Smart manufacturing adoption rates have increased by 40% across mid-size manufacturing companies, driven by automation and IoT integration.",\
"url": "https://example.com/industry-trends",\
"title": "Industry Trends Report",\
"score": 0.88\
}\
]
}
Next steps
- Learn about Knowledge Graph query configuration for tuning search parameters
- Explore Knowledge Graph tools for chat completions
- Check out direct Knowledge Graph queries for programmatic access