- Extract readable text. Convert PDF, Word or other source files outside the console. Scans need text recognition first.
- Split it into useful passages. Keep one topic or answer together, with enough context to understand it. The app stores the passages you provide; it does not split whole documents for you.
- Save a JSON file. Use a
chunks list. Each passage needs a unique integer id within the source and non-empty text. Optional fields such as title and topic help you identify and filter results.
The sample’s complete format:
{
"chunks": [
{
"id": 0,
"text": "Our remote-work policy allows up to two days a week from home, with your manager's agreement. The policy applies to all employees.",
"title": "Remote work",
"topic": "workplace"
},
{
"id": 1,
"text": "To request annual leave, enter the dates in the HR portal and wait for your manager's approval before booking travel.",
"title": "Annual leave",
"topic": "leave"
},
{
"id": 2,
"text": "Report a broken laptop to the IT help desk. Include the asset number and a description of the issue.",
"title": "Equipment support",
"topic": "equipment"
},
{
"id": 3,
"text": "Office visitors must sign in at reception and wear a visitor badge while on site.",
"title": "Office visitors",
"topic": "workplace"
}
]
}
Keep the filename and passage IDs stable when updating this source. Give different documents different filenames. Read how updates work ↓