notion.mdx 725 B

1234567891011121314151617181920
  1. ---
  2. title: '📓 Notion'
  3. ---
  4. To use notion you must install the extra dependencies with `pip install --upgrade embedchain[community]`.
  5. To load a notion page, use the data_type as `notion`. Since it is hard to automatically detect, it is advised to specify the `data_type` when adding a notion document.
  6. The next argument must **end** with the `notion page id`. The id is a 32-character string. Eg:
  7. ```python
  8. from embedchain import App
  9. app = App()
  10. app.add("cfbc134ca6464fc980d0391613959196", data_type="notion")
  11. app.add("my-page-cfbc134ca6464fc980d0391613959196", data_type="notion")
  12. app.add("https://www.notion.so/my-page-cfbc134ca6464fc980d0391613959196", data_type="notion")
  13. app.query("Summarize the notion doc")
  14. ```