app.add('https://www.youtube.com/watch?v=dQw4w9WgXcQ')
is enough to embed a YouTube video.
This detection is implemented for all formats. It is based on factors such as whether itโs a URL, a local file, the source data type, etc.
log_level: DEBUG
in the config yaml to debug if the data type detection is done right or not. Otherwise, you will not know when, for instance, an invalid filepath is interpreted as raw text instead.
add
method argument.
The examples below show you the keyword to force the respective data_type
.
Forcing can also be used for edge cases, such as interpreting a sitemap as a web_page, for reading its raw text instead of following links.
file:
URI scheme, e.g. file:///info.pdf
.reset
method. This will delete the vector database and all other app related files.