substack.mdx 421 B

12345678910111213141516
  1. ---
  2. title: "📝 Substack"
  3. ---
  4. To add any Substack data sources to your app, just add the main base url as the source and set the data_type to `substack`.
  5. ```python
  6. from embedchain import App
  7. app = App()
  8. # source: for any substack just add the root URL
  9. app.add('https://www.lennysnewsletter.com', data_type='substack')
  10. app.query("Who is Brian Chesky?")
  11. # Answer: Brian Chesky is the co-founder and CEO of Airbnb.
  12. ```