mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-23 17:58:35 +08:00
docs: components partials for lfx and concepts
This commit is contained in:
@ -11,7 +11,7 @@ import { GraduatedBundleInstall } from '@site/docs/_partial-bundle-graduated-ins
|
||||
|
||||
This page describes the components that are available in the **Amazon** bundle.
|
||||
|
||||
<GraduatedBundleInstall packageName="lfx-amazon" providerName="Amazon" />
|
||||
<GraduatedBundleInstall packageName="lfx-amazon" />
|
||||
|
||||
## Amazon Bedrock Converse
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ import { GraduatedBundleInstall } from '@site/docs/_partial-bundle-graduated-ins
|
||||
|
||||
This page describes the components that are available in the **Anthropic** bundle.
|
||||
|
||||
<GraduatedBundleInstall packageName="lfx-anthropic" providerName="Anthropic" />
|
||||
<GraduatedBundleInstall packageName="lfx-anthropic" />
|
||||
|
||||
For more information about Anthropic features and functionality used by Anthropic components, see the [Anthropic documentation](https://docs.anthropic.com/en/docs/intro).
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ import { GraduatedBundleInstall } from '@site/docs/_partial-bundle-graduated-ins
|
||||
|
||||
This page describes the components that are available in the **Cohere** bundle.
|
||||
|
||||
<GraduatedBundleInstall packageName="lfx-cohere" providerName="Cohere" />
|
||||
<GraduatedBundleInstall packageName="lfx-cohere" />
|
||||
|
||||
For more information about Cohere features and functionality used by Cohere components, see the [Cohere documentation](https://cohere.ai/).
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@ import { GraduatedBundleInstall } from '@site/docs/_partial-bundle-graduated-ins
|
||||
|
||||
This page describes the components that are available in the **DataStax** bundle, including components that read and write to Astra DB databases.
|
||||
|
||||
<GraduatedBundleInstall packageName="lfx-datastax" providerName="DataStax" />
|
||||
<GraduatedBundleInstall packageName="lfx-datastax" />
|
||||
|
||||
## Astra DB
|
||||
|
||||
|
||||
@ -11,7 +11,7 @@ import { GraduatedBundleInstall } from '@site/docs/_partial-bundle-graduated-ins
|
||||
|
||||
This page describes the components that are available in the **OpenAI** bundle.
|
||||
|
||||
<GraduatedBundleInstall packageName="lfx-openai" providerName="OpenAI" />
|
||||
<GraduatedBundleInstall packageName="lfx-openai" />
|
||||
|
||||
For more information about OpenAI features and functionality used by OpenAI components, see the [OpenAI documentation](https://platform.openai.com/docs/overview).
|
||||
|
||||
|
||||
@ -20,10 +20,10 @@ To add a component to a flow, drag the component from the <Icon name="Component"
|
||||
|
||||
Components are grouped by type or provider, and some components are hidden by default:
|
||||
|
||||
* <Icon name="Component" aria-hidden="true" /> **Core components**: Langflow's base components are grouped by purpose, such as **Inputs and Outputs** or **Data**.
|
||||
* <Icon name="Component" aria-hidden="true" /> **Core components**: Langflow's base components are grouped by purpose, such as **Input / Output** or **Flow Controls**.
|
||||
These components either provide generic functionality, like loops and parsing, or they provide single components that support multiple third-party integrations.
|
||||
|
||||
* <Icon name="Blocks" aria-hidden="true" /> **Bundles**: Bundles contain one or more components that support specific third-party integrations, and they are grouped by service provider.
|
||||
* <Icon name="Blocks" aria-hidden="true" /> **Bundles**: Bundles contain one or more components that support specific third-party integrations, and they are grouped by service provider. For more information, see [About bundles](/components-bundle-components).
|
||||
|
||||
* **Legacy**: These components are hidden by default.
|
||||
For more information, see [Legacy components](#legacy-components).
|
||||
|
||||
@ -1,22 +1,29 @@
|
||||
import Admonition from '@theme/Admonition';
|
||||
|
||||
export const GraduatedBundleInstall = ({packageName}) => {
|
||||
const providerNames = {
|
||||
'lfx-openai': 'OpenAI',
|
||||
'lfx-anthropic': 'Anthropic',
|
||||
'lfx-amazon': 'Amazon',
|
||||
'lfx-datastax': 'DataStax',
|
||||
'lfx-cohere': 'Cohere',
|
||||
const providers = {
|
||||
'lfx-openai': {name: 'OpenAI', coreSupport: true},
|
||||
'lfx-anthropic': {name: 'Anthropic', coreSupport: true},
|
||||
'lfx-amazon': {name: 'Amazon Bedrock', coreSupport: true},
|
||||
'lfx-cohere': {name: 'Cohere', coreSupport: true},
|
||||
'lfx-datastax': {name: 'DataStax', coreSupport: false},
|
||||
};
|
||||
const providerName = providerNames[packageName] ?? packageName;
|
||||
|
||||
const {name, coreSupport} = providers[packageName] ?? {name: packageName, coreSupport: false};
|
||||
|
||||
return (
|
||||
<Admonition type="note" title="Bundle installation required">
|
||||
<p>The <strong>{providerName}</strong> bundle is a standalone partner package and is <strong>not</strong> included in a standard <code>uv pip install langflow</code> installation.</p>
|
||||
<p>To install it, run:</p>
|
||||
<pre><code>uv pip install {packageName}</code></pre>
|
||||
<p>After installation, restart Langflow. To confirm the bundle loaded, run:</p>
|
||||
<pre><code>lfx extension list</code></pre>
|
||||
<p>For more information, see <a href="/get-started-installation#bundle-install">Install Langflow bundle components</a>.</p>
|
||||
<Admonition type="info" title="Bundle installation required">
|
||||
{coreSupport && (
|
||||
<p>Basic {name} support is already included in all Langflow installations through the core <a href="/components-models">Language Model</a> component. This bundle adds an enhanced {name} component with additional provider-specific parameters.</p>
|
||||
)}
|
||||
<p>The <strong>{name}</strong> bundle is a standalone partner package and is <strong>not</strong> included in a standard <code>uv pip install langflow</code>.</p>
|
||||
<p>To install it, do the following:</p>
|
||||
<ol>
|
||||
<li>Run <code>uv pip install {packageName}</code>.</li>
|
||||
<li>Restart Langflow.</li>
|
||||
<li>To confirm the bundle loaded, run <code>lfx extension list</code>.</li>
|
||||
</ol>
|
||||
<p>For more information, see <a href="/components-bundle-components#bundle-install">Install bundle components</a>.</p>
|
||||
</Admonition>
|
||||
);
|
||||
};
|
||||
|
||||
@ -1,19 +1,13 @@
|
||||
:::note Bundle installation required
|
||||
:::info Bundle installation required
|
||||
|
||||
This bundle is part of the **`lfx-bundles`** metapackage and is **not** included in a standard `uv pip install langflow` installation.
|
||||
This bundle is part of the `lfx-bundles` metapackage and is **not** included in a standard `uv pip install langflow` installation.
|
||||
|
||||
To install it, run:
|
||||
To install it, do the following:
|
||||
|
||||
```bash
|
||||
uv pip install lfx-bundles
|
||||
```
|
||||
|
||||
Restart Langflow and confirm the bundle loaded:
|
||||
|
||||
```bash
|
||||
lfx extension list
|
||||
```
|
||||
1. Run `uv pip install lfx-bundles`.
|
||||
2. Restart Langflow.
|
||||
3. To confirm the bundle loaded, run `lfx extension list`.
|
||||
|
||||
For more information, see [Install Langflow bundle components](/components-bundle-components).
|
||||
|
||||
:::
|
||||
:::
|
||||
Reference in New Issue
Block a user