From 231978d1dfd732c7d2c7548aeb2b98e5507ad0cd Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 28 Jul 2023 12:44:44 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style(docs):=20update=20image=20?= =?UTF-8?q?rendering=20in=20examples=20and=20guidelines=20files=20for=20be?= =?UTF-8?q?tter=20readability=20and=20consistency=20=F0=9F=94=A7=20chore(d?= =?UTF-8?q?ocs):=20fix=20formatting=20in=20chat-widget.mdx=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🎨 style(components.mdx): Remove unnecessary div wrapper and fix indentation 🎨 style(features.mdx): Remove unnecessary div wrapper and fix indentation 🎨 style(prompt-customization.mdx): Remove unnecessary div wrappers and fix indentation 🎨 style(index.mdx): Remove unnecessary div wrapper and fix indentation --- docs/docs/examples/how-upload-examples.mdx | 18 ++-- .../getting-started/hugging-face-spaces.mdx | 19 ++-- docs/docs/guidelines/chat-interface.mdx | 78 ++++++-------- docs/docs/guidelines/chat-widget.mdx | 75 +++++++------ docs/docs/guidelines/components.mdx | 19 ++-- docs/docs/guidelines/features.mdx | 19 ++-- docs/docs/guidelines/prompt-customization.mdx | 101 +++++++----------- docs/docs/index.mdx | 18 ++-- 8 files changed, 156 insertions(+), 191 deletions(-) diff --git a/docs/docs/examples/how-upload-examples.mdx b/docs/docs/examples/how-upload-examples.mdx index 8a4306212..2b1a2b06c 100644 --- a/docs/docs/examples/how-upload-examples.mdx +++ b/docs/docs/examples/how-upload-examples.mdx @@ -7,16 +7,14 @@ import ZoomableImage from "/src/theme/ZoomableImage.js"; We welcome all examples that can help our community learn and explore Langflow's capabilities. Langflow Examples is a repository on [GitHub](https://github.com/logspace-ai/langflow_examples) that contains examples of flows that people can use for inspiration and learning. -
- -
+{" "} + To upload examples, please follow these steps: diff --git a/docs/docs/getting-started/hugging-face-spaces.mdx b/docs/docs/getting-started/hugging-face-spaces.mdx index e8b3852a9..acc4bb8d5 100644 --- a/docs/docs/getting-started/hugging-face-spaces.mdx +++ b/docs/docs/getting-started/hugging-face-spaces.mdx @@ -6,15 +6,14 @@ import ThemedImage from "@theme/ThemedImage"; import useBaseUrl from "@docusaurus/useBaseUrl"; import ZoomableImage from "/src/theme/ZoomableImage.js"; -
- -
+{" "} + + Check out Langflow on [HuggingFace Spaces](https://huggingface.co/spaces/Logspace/Langflow). diff --git a/docs/docs/guidelines/chat-interface.mdx b/docs/docs/guidelines/chat-interface.mdx index c09f00076..0ac23dc8a 100644 --- a/docs/docs/guidelines/chat-interface.mdx +++ b/docs/docs/guidelines/chat-interface.mdx @@ -7,58 +7,46 @@ import ReactPlayer from "react-player"; Langflow’s chat interface provides a user-friendly experience and functionality to interact with the model and customize the prompt. The sidebar brings options that allow users to view and edit pre-defined prompt variables. This feature facilitates quick experimentation by enabling the modification of variable values right in the chat. -
- -
+{" "} + Notice that editing variables in the chat interface take place temporarily and won’t change their original value in the components once the chat is closed. -
- -
+{" "} + + To view the complete prompt in its original, structured format, click the "Display Prompt" option. This feature lets you see the prompt exactly as it entered the model. -
- -
- +{" "} + In the chat interface, you can redefine which variable should be interpreted as the chat input. This gives you control over these inputs and allows dynamic and creative interactions. -
- -
+{" "} + diff --git a/docs/docs/guidelines/chat-widget.mdx b/docs/docs/guidelines/chat-widget.mdx index e515e4e94..7f6737fea 100644 --- a/docs/docs/guidelines/chat-widget.mdx +++ b/docs/docs/guidelines/chat-widget.mdx @@ -2,14 +2,15 @@ import ThemedImage from "@theme/ThemedImage"; import useBaseUrl from "@docusaurus/useBaseUrl"; import ZoomableImage from "/src/theme/ZoomableImage.js"; import ReactPlayer from "react-player"; -import Admonition from '@theme/Admonition'; +import Admonition from "@theme/Admonition"; # Chat Widget
The Langflow Chat Widget is a powerful web component that enables - communication with a Langflow project. This widget allows for a chat interface embedding, - allowing the integration of Langflow into web applications effortlessly. + communication with a Langflow project. This widget allows for a chat interface + embedding, allowing the integration of Langflow into web applications + effortlessly.
## Features @@ -31,32 +32,30 @@ import Admonition from '@theme/Admonition'; at the Sidebar after building a flow. -
- -
+{" "} + +
- Clicking the Chat Widget HTML tab, you'll get the code to be - inserted. Read below to learn how to use it with HTML, React and Angular. + Clicking the Chat Widget HTML tab, you'll get the code to be inserted. Read + below to learn how to use it with HTML, React and Angular.
-
- -
+{" "} + + --- @@ -74,7 +73,7 @@ The Chat Widget can be embedded into any HTML page, inside a _``_ tag, as ### React -To embed the Chat Widget using React, you'll need to insert this _` @@ -111,7 +110,7 @@ Finally, you can place the component anywhere in your code to display the Chat W ### Angular -To use it in Angular, first add this _` @@ -119,7 +118,7 @@ To use it in Angular, first add this _`