docx.mdx 429 B

123456789101112131415161718
  1. ---
  2. title: '📄 Docx file'
  3. ---
  4. ### Docx file
  5. To add any doc/docx file, use the data_type as `docx`. `docx` allows remote urls and conventional file paths. Eg:
  6. ```python
  7. from embedchain import App
  8. app = App()
  9. app.add('https://example.com/content/intro.docx', data_type="docx")
  10. # Or add file using the local file path on your system
  11. # app.add('content/intro.docx', data_type="docx")
  12. app.query("Summarize the docx data?")
  13. ```