docs: update docs from notion (#2684)
Co-authored-by: lucaseduoli <lucaseduoli@users.noreply.github.com>
This commit is contained in:
parent
6756ef22b7
commit
b731983f31
51 changed files with 533 additions and 232 deletions
|
|
@ -11,10 +11,19 @@ This guide will help you get LangFlow up and running using Docker and Docker Com
|
|||
|
||||
## Prerequisites {#856bb2d98156402bbd1980365b98110c}
|
||||
|
||||
|
||||
---
|
||||
|
||||
- Docker
|
||||
- Docker Compose
|
||||
|
||||
## Clone repo and build Docker container {#ba89773aa8b8425b985bfe7ba91c35cc}
|
||||
## Docker {#55b5d304f2294e47b0dcd3e069cf5e67}
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
### Clone repo and build Docker container {#ba89773aa8b8425b985bfe7ba91c35cc}
|
||||
|
||||
1. Clone the LangFlow repository:
|
||||
|
||||
|
|
@ -32,7 +41,7 @@ This guide will help you get LangFlow up and running using Docker and Docker Com
|
|||
LangFlow will now be accessible at [http://localhost:7860/](http://localhost:7860/).
|
||||
|
||||
|
||||
## Docker Compose configuration {#02226209cad24185a6ec5b69bd820d0f}
|
||||
### Docker Compose configuration {#02226209cad24185a6ec5b69bd820d0f}
|
||||
|
||||
|
||||
The Docker Compose configuration spins up two services: `langflow` and `postgres`.
|
||||
|
|
@ -69,7 +78,7 @@ Volumes:
|
|||
|
||||
- `langflow-postgres`: This volume is mapped to `/var/lib/postgresql/data` in the container.
|
||||
|
||||
## Switch to a specific LangFlow version {#2b3e191ea48f4feab89242433cf012d5}
|
||||
### Switch to a specific LangFlow version {#2b3e191ea48f4feab89242433cf012d5}
|
||||
|
||||
|
||||
If you want to use a specific version of LangFlow, you can modify the `image` field under the `langflow` service in the Docker Compose file. For example, to use version 1.0-alpha, change `langflowai/langflow:latest` to `langflowai/langflow:1.0-alpha`.
|
||||
|
|
|
|||
|
|
@ -6,22 +6,37 @@ slug: /deployment-gcp
|
|||
|
||||
|
||||
|
||||
# Deploy on Google Cloud Platform {#4ee01cda736c4f7396936409f23cdb52}
|
||||
:::info
|
||||
|
||||
This page may contain outdated information. It will be updated as soon as possible.
|
||||
|
||||
:::
|
||||
|
||||
|
||||
> Warning: This page may contain outdated information. It will be updated as soon as possible.
|
||||
|
||||
|
||||
## Run Langflow from a New Google Cloud Project {#ce729796d7404ccdb627bee47d6a4399}
|
||||
## Deploy on Google Cloud Platform {#4ee01cda736c4f7396936409f23cdb52}
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
### Run Langflow from a New Google Cloud Project {#ce729796d7404ccdb627bee47d6a4399}
|
||||
|
||||
|
||||
This guide will help you set up a Langflow development VM in a Google Cloud Platform project using Google Cloud Shell.
|
||||
|
||||
|
||||
> Note: When Cloud Shell opens, be sure to select Trust repo. Some gcloud commands might not run in an ephemeral Cloud Shell environment.
|
||||
:::info
|
||||
|
||||
When Cloud Shell opens, be sure to select Trust repo. Some gcloud commands might not run in an ephemeral Cloud Shell environment.
|
||||
|
||||
:::
|
||||
|
||||
|
||||
## Standard VM {#245b47b450dd4159a5c56a5124bab84f}
|
||||
|
||||
|
||||
### Standard VM {#245b47b450dd4159a5c56a5124bab84f}
|
||||
|
||||
|
||||
[embed](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/langflow-ai/langflow&working_dir=scripts/gcp&shellonly=true&tutorial=walkthroughtutorial.md)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ slug: /deployment-hugging-face-spaces
|
|||
|
||||
|
||||
|
||||
# HuggingFace Spaces {#00f5b3a6818d496dbb18e1a6a910e57d}
|
||||
## HuggingFace Spaces {#00f5b3a6818d496dbb18e1a6a910e57d}
|
||||
|
||||
|
||||
---
|
||||
|
|
@ -14,13 +14,21 @@ slug: /deployment-hugging-face-spaces
|
|||
|
||||
HuggingFace provides a great alternative for running Langflow in their Spaces environment. This means you can run Langflow in the cloud without any local installation required. Here's how you can get Langflow up and running on HuggingFace Spaces:
|
||||
|
||||
|
||||
1. **Access Langflow Space**: Open a Chromium-based browser and navigate to the [Langflow Space](https://huggingface.co/spaces/Langflow/Langflow?duplicate=true). This link directs you to a pre-configured environment for Langflow.
|
||||
|
||||
|
||||
2. **Duplicate the Space**: You'll encounter an option to duplicate the Langflow space. This step involves a few simple decisions:
|
||||
|
||||
- **Naming Your Space**: Assign a unique name to your new Space.
|
||||
- **Visibility Settings**: Choose between Public or Private visibility for your Space.
|
||||
- After setting these parameters, click on **Duplicate Space** to initiate the setup.
|
||||
|
||||

|
||||
|
||||
1. **Complete Installation**: The duplication and setup process begins immediately after you click **Duplicate Space**. Once completed, you will be automatically redirected to the main page of your new Space.
|
||||
2. **Start Exploring Langflow**: With the setup complete, Langflow is now ready for use in your Space and you can start exploring its features and capabilities right away!
|
||||
|
||||
3. **Complete Installation**: The duplication and setup process begins immediately after you click **Duplicate Space**. Once completed, you will be automatically redirected to the main page of your new Space.
|
||||
|
||||
|
||||
4. **Start Exploring Langflow**: With the setup complete, Langflow is now ready for use in your Space and you can start exploring its features and capabilities right away!
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@ This guide will help you get LangFlow up and running in Kubernetes cluster, incl
|
|||
## LangFlow (IDE) {#cb60b2f34e70490faf231cb0fe1a4b42}
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
This solution is designed to provide a complete environment for developers to create, test, and debug their flows. It includes both the API and the UI.
|
||||
|
||||
|
||||
|
|
@ -191,6 +194,9 @@ Visit the [LangFlow Helm Charts repository](https://github.com/langflow-ai/langf
|
|||
## LangFlow (Runtime) {#49f2813ad2d3460081ad26a286a65e73}
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
The runtime chart is tailored for deploying applications in a production environment. It is focused on stability, performance, isolation, and security to ensure that applications run reliably and efficiently.
|
||||
|
||||
|
||||
|
|
@ -216,7 +222,6 @@ Follow the same steps as for the LangFlow IDE.
|
|||
```shell
|
||||
helm repo add langflow <https://langflow-ai.github.io/langflow-helm-charts>
|
||||
helm repo update
|
||||
|
||||
```
|
||||
|
||||
2. Install the LangFlow app with the default options in the `langflow` namespace.
|
||||
|
|
@ -225,20 +230,20 @@ If you want to download the flow from a remote location, you can specify the URL
|
|||
|
||||
```shell
|
||||
helm install my-langflow-app langflow/langflow-runtime -n langflow --create-namespace --set image.repository=myuser/langflow-just-chat --set image.tag=1.0.0
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
```shell
|
||||
helm install my-langflow-app langflow/langflow-runtime -n langflow --create-namespace --set downloadFlows.flows[0].url=https://raw.githubusercontent.com/langflow-ai/langflow/dev/src/backend/base/langflow/initial_setup/starter_projects/Basic%20Prompting%20(Hello%2C%20world!).json
|
||||
|
||||
|
||||
```
|
||||
|
||||
3. Check the status of the pods.
|
||||
|
||||
```text
|
||||
kubectl get pods -n langflow
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
|
@ -250,7 +255,6 @@ Enable local port forwarding to access LangFlow from your local machine.
|
|||
|
||||
```text
|
||||
kubectl port-forward -n langflow svc/langflow-my-langflow-app 7860:7860
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
|
@ -348,14 +352,20 @@ resources:
|
|||
```
|
||||
|
||||
|
||||
### Other examples {#8522b4276b51448e9f8f0c6efc731a7c}
|
||||
## Other Examples {#8522b4276b51448e9f8f0c6efc731a7c}
|
||||
|
||||
|
||||
Visit the LangFlow Helm Charts repository for more examples and configurations.
|
||||
---
|
||||
|
||||
|
||||
Use the default values file as reference for all the options available.
|
||||
Visit the LangFlow Helm Charts repository for more examples and configurations. Use the default values file as reference for all the options available.
|
||||
|
||||
|
||||
:::note
|
||||
|
||||
Visit the examples directory to learn more about different deployment options.
|
||||
|
||||
:::
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@ slug: /deployment-railway
|
|||
|
||||
|
||||
|
||||
# Deploy on Railway {#a9a1ce4d39e74cc29aef4d30c6172d10}
|
||||
## Deploy on Railway {#a9a1ce4d39e74cc29aef4d30c6172d10}
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
Railway is a cloud infrastructure platform that enables developers to deploy and manage applications effortlessly. It provides an intuitive interface, seamless integrations, and powerful features like auto-deploy from GitHub, managed databases, and automatic scaling.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@ slug: /deployment-render
|
|||
|
||||
|
||||
|
||||
# Deploy on Render {#20a959b7047e44e490cc129fd21895c0}
|
||||
## Deploy on Render {#20a959b7047e44e490cc129fd21895c0}
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
[Render.com](http://render.com/) is a unified cloud platform designed to make deploying web applications, APIs, and static sites easy. It provides a streamlined experience with powerful features like automatic SSL, managed databases, and auto-deploy from Git, making it a popular choice for developers looking to simplify their deployment workflows.
|
||||
|
|
@ -14,16 +17,24 @@ slug: /deployment-render
|
|||
|
||||
Deploying Langflow to Render is a straightforward process that can be completed in just a few steps:
|
||||
|
||||
|
||||
1. **Click the Button Below**: Start by clicking the deployment button provided below. This will redirect you to the Render platform.
|
||||
|
||||
|
||||
[https://render.com/deploy?repo=https://github.com/langflow-ai/langflow/tree/dev](https://render.com/deploy?repo=https%3A%2F%2Fgithub.com%2Flangflow-ai%2Flangflow%2Ftree%2Fdev)
|
||||
|
||||
|
||||
2. **Select the Default Configuration**: Once on the Render platform, you will be prompted to provide a blueprint name and to select the default configuration for Langflow. This configuration includes all the necessary settings and resources to run Langflow efficiently. You can change the branch of the repo to “main” or “dev” based on your preference. Click “Create New Resources” to proceed.
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
3. **Deploy**: After selecting the configuration, proceed to deploy your Langflow instance. You can keep the default Starter instance, or change it to another instance based on your specific needs. Click Apply to deploy the instance. Render will handle the rest, including setting up the database, deploying the Langflow instance, and starting the application.
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue