Skip to content

Commit

Permalink
run codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Jun 4, 2024
1 parent e4f4401 commit 8c89efd
Show file tree
Hide file tree
Showing 9 changed files with 280 additions and 275 deletions.
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
identity and expression, level of experience, education, socioeconomic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ coverage:

# allow passing arguments to pytest
tests:
poetry run pytest tests --instafail $(args)
poetry run pytest tests --instafail -ra -n auto $(args)
# Use like:

format:
Expand Down
28 changes: 16 additions & 12 deletions docs/docs/getting-started/canvas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ Components are the building blocks of flows. They consist of inputs, outputs, an
<div style={{ marginBottom: "20px" }}>
During the flow creation process, you will notice handles (colored circles)
attached to one or both sides of a component. These handles represent the
availability to connect to other components. Hover over a handle to see connection details.
availability to connect to other components. Hover over a handle to see
connection details.
</div>

<div style={{ marginBottom: "20px" }}>
Expand Down Expand Up @@ -85,6 +86,7 @@ Build the flow by clicking the **![Playground icon](/logos/botmessage.svg)Playgr

Once the validation is complete, the status of each validated component should turn green (![Status icon](/logos/greencheck.svg)).
To debug, hover over the component status to see the outputs.

</div>

---
Expand Down Expand Up @@ -120,7 +122,7 @@ You can modify the code and save it.

#### Save

Save your component to the **Saved** components folder for re-use.
Save your component to the **Saved** components folder for reuse.

#### Duplicate

Expand All @@ -146,13 +148,13 @@ Duplicate your component in the canvas.

### Group multiple components

Components without input or output nodes can be grouped into a single component for re-use.
Components without input or output nodes can be grouped into a single component for reuse.
This is useful for combining large flows into single components (like RAG with a vector database, for example) and saves space in the canvas.

1. Hold **Shift** and drag to select the **Prompt** and **OpenAI** components.
2. Select **Group**.
3. The components merge into a single component.
4. To save the new component, select **Save**. It can now be re-used from the **Saved** components folder.
4. To save the new component, select **Save**. It can now be reused from the **Saved** components folder.

## Playground

Expand Down Expand Up @@ -196,6 +198,7 @@ curl -X POST \
```

Result:

```
{"session_id":"f2eefd80-bb91-4190-9279-0d6ffafeaac4:53856a772b8e1cfcb3dd2e71576b5215399e95bae318d3c02101c81b7c252da3","outputs":[{"inputs":{"input_value":"is anybody there?"},"outputs":[{"results":{"result":"Arrr, me hearties! Aye, this be Captain [Your Name] speakin'. What be ye needin', matey?"},"artifacts":{"message":"Arrr, me hearties! Aye, this be Captain [Your Name] speakin'. What be ye needin', matey?","sender":"Machine","sender_name":"AI"},"messages":[{"message":"Arrr, me hearties! Aye, this be Captain [Your Name] speakin'. What be ye needin', matey?","sender":"Machine","sender_name":"AI","component_id":"ChatOutput-njtka"}],"component_display_name":"Chat Output","component_id":"ChatOutput-njtka"}]}]}%
```
Expand Down Expand Up @@ -231,9 +234,10 @@ A collection is a snapshot of flows available in a database.

Collections can be downloaded to local storage and uploaded for future use.

<div style={{ marginBottom: '20px', display: 'flex', justifyContent: 'center' }}>
<ReactPlayer playing controls url='/videos/langflow_collection.mp4'
/>
<div
style={{ marginBottom: "20px", display: "flex", justifyContent: "center" }}
>
<ReactPlayer playing controls url="/videos/langflow_collection.mp4" />
</div>

## Project
Expand Down Expand Up @@ -277,8 +281,8 @@ To see options for your project, in the upper left corner of the canvas, select

**Undo** or **Redo** - Undo or redo your last action.






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";
9 changes: 4 additions & 5 deletions docs/docs/integrations/notion/page-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ Let's break down the key parts of this component:
Here's an example of how to use the `NotionPageUpdate` component in a Langflow flow using:

<ZoomableImage
alt="NotionPageUpdate Flow Example"
sources={{
alt="NotionPageUpdate Flow Example"
sources={{
light: "img/notion/NotionPageUpdate_flow_example.png",
dark: "img/notion/NotionPageUpdate_flow_example_dark.png",
}}
style={{ width: "100%", margin: "20px 0" }}
style={{ width: "100%", margin: "20px 0" }}
/>
</Admonition>

Expand All @@ -124,11 +124,10 @@ When using the `NotionPageUpdate` component, consider the following best practic

- Ensure that you have a valid Notion integration token with the necessary permissions to update page properties.
- Handle edge cases and error scenarios gracefully, such as invalid JSON format for properties or API request failures.
- We recommend using an LLM to generate the inputs for this component, to allow flexibilty
- We recommend using an LLM to generate the inputs for this component, to allow flexibility

By leveraging the `NotionPageUpdate` component in Langflow, you can easily integrate updating Notion page properties into your language model workflows and build powerful applications that extend Langflow's capabilities.


## Troubleshooting

If you encounter any issues while using the `NotionPageUpdate` component, consider the following:
Expand Down
Loading

0 comments on commit 8c89efd

Please sign in to comment.