소스 검색

Add documentation for text_file data type (#1410)

Dimitra Gerontaki 1 년 전
부모
커밋
4119040005
1개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 14 0
      docs/components/data-sources/text-file.mdx

+ 14 - 0
docs/components/data-sources/text-file.mdx

@@ -0,0 +1,14 @@
+---
+title: '📄 Text file'
+---
+
+To add a .txt file, specify the data_type as `text_file`. The URL provided in the first parameter of the `add` function, should be a local path. Eg:
+
+```python
+from embedchain import App
+
+app = App()
+app.add('path/to/file.txt', data_type="text_file")
+
+app.query("Summarize the information of the text file")
+```