Commit graph

321 commits

Author SHA1 Message Date
Gabriel Luiz Freitas Almeida
4ad226f35b 📚 docs(custom-component.mdx): remove unnecessary code and examples from the custom component guidelines
📚 docs(custom-component.mdx): remove unnecessary code and examples related to the FlowRunner component from the custom component guidelines
2023-07-28 11:24:16 -03:00
Gabriel Luiz Freitas Almeida
457453656a 📝 docs(custom.mdx): update documentation for Custom Component
The changes in this commit update the documentation for the Custom Component.

- Clarify that the code must be a class that inherits from the `langflow.CustomComponent` class.
- Explain that the type annotations of the `build` instance method are used to create the fields of the component.
- Provide a table of supported types for the `build` method.
- Introduce the `build_config` instance method for defining configuration fields.
- Describe the format and available keys for the `build_config` method.
- Add usage example for the `build` method.

These changes improve the clarity and completeness of the documentation for the Custom Component, making it easier for users to understand and utilize this feature.
2023-07-28 11:23:26 -03:00
Gabriel Luiz Freitas Almeida
28cebb2d39 🔧 chore(docs): update custom-component.mdx
🐛 fix(custom-component.mdx): change class name from BestComponent to DocumentProcessor to improve semantics and clarity
 feat(custom-component.mdx): add support for processing the page content of a document based on a selected function
📝 docs(custom-component.mdx): update example and explanations to reflect the changes made in the code

🐛 fix(custom-component.mdx): fix code indentation and remove unused imports
 feat(custom-component.mdx): update component name and description to improve clarity and semantics
🐛 fix(custom-component.mdx): update build method parameters and return type to match the actual implementation
 feat(custom-component.mdx): add support for configuring fields in the build_config method
🐛 fix(custom-component.mdx): fix code indentation and remove unused imports in the build_config method
 feat(custom-component.mdx): add support for configuring fields in the build_config method
2023-07-28 09:30:56 -03:00
Gabriel Luiz Freitas Almeida
dc2207d194 📝 docs(img): add images for document processor and document processor code
📝 docs(img): add images for document processor and document processor code to enhance documentation and provide visual representation of the process
2023-07-28 09:30:28 -03:00
Gabriel Luiz Freitas Almeida
559778d4b6 🐛 fix(ZoomableImage.js): add style prop to ZoomableImage component to allow custom styling
 feat(ZoomableImage.js): add default style to ZoomableImage component for consistent layout and centering of images
2023-07-28 09:29:18 -03:00
Rodrigo Nader
2ce2be4544 minor 2023-07-27 22:14:05 -03:00
Rodrigo Nader
645f35e186 Enhance custom component docs 2023-07-27 22:08:12 -03:00
Gabriel Luiz Freitas Almeida
9cd919b7f5 📝 docs(custom-component.mdx): update guidelines for custom components and add examples
📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components and add examples

📝 docs(custom-component.mdx): update guidelines for custom components
2023-07-27 18:12:16 -03:00
Gabriel Luiz Freitas Almeida
397c665536 Merge branch 'python_custom_node_component' into ChatWidgetAPI 2023-07-27 17:38:35 -03:00
Gabriel Luiz Freitas Almeida
aeca627222 📝 docs(custom-component.mdx): update guidelines for custom components
 feat(custom-component.mdx): add rules and explanations for creating custom components

📝 docs(custom-component.mdx): update rule 1 to specify that the script must contain a single class inheriting from CustomComponent

📝 docs(custom-component.mdx): update rule 2 to specify that the class must have a build method

📝 docs(custom-component.mdx): update rule 3 to specify that the type annotations of the build method will be used to create the fields of the component

📝 docs(custom-component.mdx): update rule 4 to specify that the class can have a build_config method

📝 docs(custom-component.mdx): update rule 4 to provide details on the format of the build_config method

📝 docs(custom-component.mdx): update rule 4 to correct a typo in the display_name key

📝 docs(custom-component.mdx): update rule 4 to provide additional details on the options and multiline keys in the build_config method

📝 docs(custom-component.mdx): add example for creating a FlowRunner component

📝 docs(custom-component.mdx): update example for creating a FlowRunner component to include display_name and description attributes

📝 docs(custom-component.mdx): update example for creating a FlowRunner component to import Document from the schema module

📝 docs(custom-component.mdx): update example for creating a FlowRunner component to add parameters and return type to the build method
2023-07-27 17:28:46 -03:00
Gabriel Luiz Freitas Almeida
4783b47815 🔧 chore(custom.css): adjust max-width and min-width of .ch-scrollycoding-content and .ch-scrollycoding-sticker to improve layout
🔧 chore(custom.css): add min-height to .ch-scrollycoding-step-content for better spacing
2023-07-27 17:20:29 -03:00
Rodrigo Nader
d9663bee45 Rename widget.md to chat-widget.md
- The code changes renamed the file `widget.mdx` to `chat-widget.mdx`.
- The content has been modified to reflect the new name and provide a more detailed description of the Langflow Chat Widget.
- The usage instructions have been updated to reflect the changes.

This commit renames `widget.mdx` to `chat-widget.mdx` and provides more detailed information about the Langflow Chat Widget, including its features, usage in HTML, React, and Angular, and customization options.
2023-07-27 15:49:22 -03:00
Cristhian Zanforlin Lousa
f49bca8e9d 📝 docs(widget.mdx): add Admonition component to provide additional information about using the Chat Widget in Angular projects
📝 docs(widget.mdx): update caution admonition to provide instructions on passing JSON props as Stringified JSONs
2023-07-27 09:06:58 -03:00
Gabriel Luiz Freitas Almeida
e43f52dd7a 📝 docs(custom-component.mdx): update guidelines for creating custom components
 feat(custom-component.mdx): add example code for creating a custom component
🔧 chore(custom-component.mdx): update code comments and fix typo in build_config method
2023-07-27 08:04:18 -03:00
Gabriel Luiz Freitas Almeida
529322e56a 🎨 style(custom.css): adjust max-width and min-width of .ch-scrollycoding-content and .ch-scrollycoding-sticker to improve layout proportions 2023-07-27 08:00:22 -03:00
Gabriel Luiz Freitas Almeida
d8980d34f2 🔧 chore(docusaurus.config.js): enable sidebar to be hideable in the docs section for better user experience 2023-07-27 07:59:58 -03:00
Lucas Oliveira
1c5eb4a2f8 Changed text to be more specific 2023-07-27 07:54:27 -03:00
Lucas Oliveira
5b34d8e725 Added note to JSONs on docs 2023-07-27 07:52:24 -03:00
Gabriel Luiz Freitas Almeida
fa8b3eca92 📝 docs(widget.mdx): update code snippet language from html to jsx for accuracy and clarity 2023-07-27 07:34:21 -03:00
Gabriel Luiz Freitas Almeida
5110644082 🔧 chore(widget.mdx): remove unnecessary comment in langflow-chat component example 2023-07-27 07:33:32 -03:00
Gabriel Luiz Freitas Almeida
3e0fc3cc1b 📝 docs(widget.mdx): improve formatting and readability of the Chat Widget documentation 2023-07-27 07:32:30 -03:00
Gabriel Luiz Freitas Almeida
6b7ab2aded 📝 docs(custom-component.mdx): add documentation for custom components
🎨 style(custom.css): update styling for code blocks and sidebar in documentation
2023-07-27 06:58:39 -03:00
Gabriel Luiz Freitas Almeida
9a1c20d750 📝 docs(custom.mdx): add documentation for custom component 2023-07-27 06:58:38 -03:00
Gabriel Luiz Freitas Almeida
ea8865dc18 🔧 chore(docs): update docusaurus.config.js to use monokai theme for code highlighting, show copy button, and display line numbers
📝 docs(sidebars.js): add "guidelines/custom-component" and "components/custom" to the sidebar for better navigation and discoverability
2023-07-27 06:58:38 -03:00
Gabriel Luiz Freitas Almeida
bb247af614 🔧 chore(package.json): update dependencies
📦 Add new dependency:
- "@code-hike/mdx": "^0.9.0"

🔄 Update existing dependencies:
- "@mdx-js/react": "^2.3.0"
- "docusaurus-theme-mdx-v2": "^0.1.2"
2023-07-27 06:58:37 -03:00
Gabriel Luiz Freitas Almeida
e78ce40cbf 🔧 fix(docusaurus.config.js): fix import statement for remarkCodeHike to resolve linting error
 feat(docusaurus.config.js): add support for code highlighting with remarkCodeHike plugin
2023-07-27 06:58:36 -03:00
Gabriel Luiz Freitas Almeida
8ac890c553 🔧 chore(chains.mdx): add import statement for Admonition component to improve code organization and readability
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧 chore(chains.mdx): update verbose parameter description to improve clarity
🔧 chore(chains.mdx): fix formatting and indentation for better code readability
🔧

📝 chore(docs): update import statements for Admonition component in examples

📝 chore(docs): update link in Prompts component to use Admonition component

📝 chore(docs): update import statements for Admonition component in examples

📝 chore(docs): update link in Conversation Chain component to use Admonition component

📝 chore(docs): update import statements for Admonition component in examples

📝 chore(docs): update link in CSV Loader component to use Admonition component

📝 chore(docs): update import statements for Admonition component in examples

📝 chore(docs): update link in MidJourney Prompt Chain component to use Admonition component

📝 chore(docs): update import statements for Admonition component in examples

📝 chore(docs): update link in Multiple Vector Stores component to use Admonition component

📝 docs(examples/python-function.mdx): add import statement for Admonition component
📝 docs(examples/python-function.mdx): improve readability of tip admonition by breaking lines
📝 docs(examples/python-function.mdx): improve readability of info admonition by breaking lines
📝 docs(examples/serp-api-tool.mdx): add import statement for Admonition component
📝 docs(examples/serp-api-tool.mdx): improve readability of info admonition by breaking lines
📝 docs(guidelines/features.mdx): add import statement for Admonition component
📝 docs(guidelines/features.mdx): improve readability of caution admonition by breaking lines
2023-07-27 06:58:35 -03:00
Cristhian Zanforlin Lousa
0ed7b7cb2a 📝 docs(widget.mdx): add instructions for including Chat Widget in Angular component's view
📝 docs(widget.mdx): provide example code for adding the 'langflow-chat' tag with necessary attributes to include the Chat Widget in the component's view
2023-07-27 00:11:40 -03:00
Cristhian Zanforlin Lousa
33ad61ae71 📝 docs(widget.mdx): add instructions for using Chat Widget in Angular application
The commit adds instructions for using the Chat Widget in an Angular application. It includes steps to insert a script tag in the index.html file, suppress warnings related to custom elements in Angular templates, and additional notes about using the Chat Widget in Angular components.
2023-07-27 00:05:17 -03:00
Lucas Oliveira
fd701ba272 Added documentation of Chat Widget. 2023-07-26 22:57:04 -03:00
Rodrigo Nader
7d84ed41e8 feat(docs): add "ZONE UNDER CONSTRUCTION" message to components
The commit adds a cautionary message to the agents, chains, embeddings, and LLMs documentation pages, indicating that the documentation is still under construction. The message encourages users to provide feedback and report any issues to help improve the documentation.
2023-07-20 15:12:30 -03:00
Rodrigo Nader
ce240aedf6 add docs with components 2023-07-18 15:08:00 -03:00
carlosrcoelho
5d2a29a436 add docs 2023-07-18 14:59:27 -03:00
Rodrigo Nader
5d3a7f06a8 Docs - Grammar improvements 2023-07-13 18:35:16 -03:00
carlosrcoelho
afaf2dac8c Add new documentation for chat interface and prompt customization
- Added new files for chat interface and prompt customization in the guidelines section
- Added descriptions and images for the chat interface and prompt customization features
- Updated the sidebars to include the new documentation pages
2023-07-13 16:58:47 -03:00
Rodrigo Nader
c86100b875 Change step-by-step guides names 2023-07-13 16:44:27 -03:00
Gabriel Luiz Freitas Almeida
b0db72c9fd 📝 docs(chatprompttemplate_guide.mdx): update interactive guide URL and add step-by-step instructions for customization and building a chatbot with custom system messages
📝 docs(loading_document.mdx): update interactive guide URL and add step-by-step instructions for integrating a document into a PromptTemplate variable
📝 docs(sidebars.js): add "chatprompttemplate_guide" to the Guides section
2023-07-13 14:07:10 -03:00
Gabriel Luiz Freitas Almeida
495a806a32 📝 docs(chatprompttemplate_guide.mdx): add step-by-step guide to customize and build a chatbot with a custom system message
This commit adds a new file `chatprompttemplate_guide.mdx` which contains a step-by-step guide on how to customize and build a chatbot with a custom system message. The guide includes instructions on how to modify the "Basic Chat with Prompt and History" example by integrating the `ChatPromptTemplate`, `SystemMessagePromptTemplate`, and `HumanMessagePromptTemplate` components. It also provides tips on setting the model, defining variables, and testing the chatbot. The guide aims to help users create a personalized chatbot that can interpret and respond based on user-defined system messages.

Co-authored-by: [Author Name] <author@example.com>
2023-07-13 13:56:50 -03:00
Gabriel Luiz Freitas Almeida
5d81e2f2d8 📝 docs(loading_document.mdx): update title and content to provide a clearer and more comprehensive guide on how to populate a Prompt variable with a document
 feat(loading_document.mdx): add step-by-step instructions on how to define a Prompt variable and connect a WebBaseLoader to it for loading a document into the variable

🔀 chore(loading_document.mdx): reorganize and rephrase the content to improve readability and clarity
2023-07-13 09:02:10 -03:00
Gabriel Luiz Freitas Almeida
924bf56ba1 📚 docs(sidebars.js): add new category "Guides" with an item "loading_document" to the sidebar to improve navigation and organization of documentation 2023-07-12 22:03:56 -03:00
Gabriel Luiz Freitas Almeida
82701d7bf6 📝 docs(loading_document.mdx): add guide on loading a document into a Prompt variable
This commit adds a new guide file `loading_document.mdx` that provides an overview and example on how to load a document into a Prompt variable. The guide explains the process of defining a Prompt variable in the `PromptTemplate` component, connecting a `WebBaseLoader` to the variable, and building the flow. It also demonstrates how to chat with the document content in the context of a conversation.

The commit also includes an embedded iframe that showcases the functionality described in the guide.
2023-07-12 22:03:29 -03:00
Gabriel Luiz Freitas Almeida
d106490ac6 🔧 chore(Footer.js): add missing import for useDocusaurusContext hook to fix build error 2023-07-12 21:54:57 -03:00
Gabriel Luiz Freitas Almeida
6a877a246b fix: add custom fields 2023-07-12 19:35:04 -03:00
Gabriel Luiz Freitas Almeida
04e3b42265 📦 chore(package.json): update "@mendable/search" dependency to version "^0.0.114" for bug fixes and improvements 2023-07-12 19:34:23 -03:00
Gabriel Luiz Freitas Almeida
2d148afd27 📝 docs(docusaurus.config.js): update title and tagline to use consistent naming convention for Langflow
🔧 chore(docusaurus.config.js): update logo alt text to match the updated title
🔧 chore(docusaurus.config.js): update announcementBar content to use consistent naming convention for Langflow
2023-07-12 19:31:03 -03:00
Gabriel Luiz Freitas Almeida
049ba108bb fix: LangFlow -> Langflow 2023-07-12 19:30:37 -03:00
Gabriel Luiz Freitas Almeida
27d4de3ed2 🔧 chore(docusaurus.config.js): remove deploymentBranch configuration to avoid confusion and improve clarity 2023-07-12 18:56:44 -03:00
Gabriel Luiz Freitas Almeida
d10ed2f7eb 📝 docs(static): add CNAME file with langflow.org as the custom domain for the documentation site 2023-07-12 18:53:22 -03:00
Gabriel Luiz Freitas Almeida
963a6b0d31 🔥 chore(.gitignore): add .docusaurus/ directory to ignore list to exclude Docusaurus generated files from version control 2023-07-12 18:42:55 -03:00
Gabriel Luiz Freitas Almeida
7034660af2 removing build files 2023-07-12 18:20:12 -03:00