From 411904000550a292104dc3df05ef4475eb19add4 Mon Sep 17 00:00:00 2001 From: Dimitra Gerontaki <115888530+dimigerontaki@users.noreply.github.com> Date: Tue, 11 Jun 2024 07:34:28 +0300 Subject: [PATCH] Add documentation for text_file data type (#1410) --- docs/components/data-sources/text-file.mdx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docs/components/data-sources/text-file.mdx diff --git a/docs/components/data-sources/text-file.mdx b/docs/components/data-sources/text-file.mdx new file mode 100644 index 00000000..14b48c00 --- /dev/null +++ b/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") +``` \ No newline at end of file