diff --git a/docs/docs/guides/loading_document.mdx b/docs/docs/guides/loading_document.mdx new file mode 100644 index 000000000..fa1235e6c --- /dev/null +++ b/docs/docs/guides/loading_document.mdx @@ -0,0 +1,28 @@ +import ThemedImage from "@theme/ThemedImage"; +import useBaseUrl from "@docusaurus/useBaseUrl"; +import ZoomableImage from "/src/theme/ZoomableImage.js"; +import ReactPlayer from "react-player"; + +# Loading a document into a Prompt variable + +## Overview + +The following example shows how to load a document into a Prompt variable. +First, we define a Prompt variable in the PromptTemplate component, +then we connect a WebBaseLoader to that variable and build the flow. + +Once the building is complete, we can start chatting having the content of the document in the context of the conversation. + +