Converting Notion Pages into the OpenAI Knowledge Files
You can convert Notion Pages into OpenAI knowledge files by exporting and merging Notion pages.
Exporting Notion Pages
-
Open the page to export.
-
Click the "•••" button on the top right and select the "Export" option.
-
Make the options identical to the below:
- Export format: Markdown & CSV
- Include database: Current view
- Include content: No files or images
- Include subpages: Yes
- Create folders for subpages: No
-
Download the files by clicking the "Export" button.
Merging Exported Files
The files are supposed to be merged into a few files because OpenAI does not allow uploading more than 20 knowledge files.
Visit the Merge Text Files page to merge the files.
Expected Results
The merged file should be plain markdown text, like the below:
Sample content
# ACME Employee Handbook
## Leave Policy
ACME is committed to supporting our employees' work-life balance. This leave policy outlines the various types of leave available to employees and the procedures for requesting leave.
### Sick Leave
Eligibility: All full-time employees are eligible for sick leave.
Entitlement: Employees are entitled to [14] paid sick days per year.
Usage: Sick leave can be used for illness, medical appointments, or care for an ill family member. Employees should notify their supervisor as soon as possible if they need to take sick leave.
### Annual Leave(Vacation Leave)
Eligibility: All full-time employees are eligible for annual leave.
Accrual: Employees accrue [20] days of paid vacation per year. Vacation accrual begins on the first day of employment and is prorated for the first year based on the start date.
Carryover: Employees can carry over up to [5] days of unused vacation to the next year. Unused vacation days above this limit will be forfeited.
Scheduling: Vacation requests should be submitted to your supervisor at least [2] weeks in advance. Approval is based on business needs and on a first-come, first-served basis.
### Procedure for Requesting Leave
Employees should request leave by filling out the 'Leave Request Form' and submitting it to their supervisor for approval.
Requests for leave should be made as far in advance as possible, especially for extended periods of leave.
In emergencies or unexpected situations, employees should notify their supervisor as soon as possible.