From cc62a1f665a37646c34c1da0d1445a8ca8e1ffd5 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 8 Apr 2024 15:36:37 -0300 Subject: [PATCH] Update repository URLs to use langflow-ai instead of logspace-ai (#1642) * Update repository URLs to use langflow-ai instead of logspace-ai * Update chat-widget.mdx to remove unnecessary imports and dependencies --- CONTRIBUTING.md | 6 +-- GCP_DEPLOYMENT.md | 22 ++++---- README.md | 8 +-- docs/docs/contributing/community.md | 15 +++--- docs/docs/contributing/github-issues.md | 7 ++- docs/docs/contributing/how-contribute.md | 5 +- docs/docs/deployment/gcp-deployment.md | 17 +++--- docs/docs/guidelines/chat-widget.mdx | 8 +-- docs/docs/guidelines/custom-component.mdx | 5 +- .../whats-new/migrating-to-one-point-zero.mdx | 2 +- docs/docusaurus.config.js | 6 +-- pyproject.toml | 2 +- render.yaml | 2 +- scripts/aws/README.ja.md | 54 ++++++++++--------- scripts/aws/README.md | 20 +++---- src/backend/base/langflow/__main__.py | 15 +++--- src/backend/base/pyproject.toml | 2 +- .../components/CrashErrorComponent/index.tsx | 4 +- .../src/components/headerComponent/index.tsx | 2 +- src/frontend/src/controllers/API/api.tsx | 6 +-- src/frontend/src/controllers/API/index.ts | 2 +- src/frontend/src/utils/utils.ts | 2 +- 22 files changed, 110 insertions(+), 102 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c58bb92f1..383d21344 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -16,12 +16,12 @@ The branch structure is as follows: ## 🚩GitHub Issues -Our [issues](https://github.com/logspace-ai/langflow/issues) page is kept up to date +Our [issues](https://github.com/langflow-ai/langflow/issues) page is kept up to date with bugs, improvements, and feature requests. There is a taxonomy of labels to help with sorting and discovery of issues of interest. If you're looking for help with your code, consider posting a question on the -[GitHub Discussions board](https://github.com/logspace-ai/langflow/discussions). Please +[GitHub Discussions board](https://github.com/langflow-ai/langflow/discussions). Please understand that we won't be able to provide individual support via email. We also believe that help is much more valuable if it's **shared publicly**, so that more people can benefit from it. @@ -40,7 +40,7 @@ so that more people can benefit from it. ## Issue labels -[See this page](https://github.com/logspace-ai/langflow/labels) for an overview of +[See this page](https://github.com/langflow-ai/langflow/labels) for an overview of the system we use to tag our issues and pull requests. ## Local development diff --git a/GCP_DEPLOYMENT.md b/GCP_DEPLOYMENT.md index e00e9b1f8..12b6b0239 100644 --- a/GCP_DEPLOYMENT.md +++ b/GCP_DEPLOYMENT.md @@ -4,25 +4,27 @@ This guide will help you set up a Langflow development VM in a Google Cloud Plat > **Note**: When Cloud Shell opens, be sure to select **Trust repo**. Some `gcloud` commands might not run in an ephemeral Cloud Shell environment. +## Standard VM -## Standard VM -[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/logspace-ai/langflow&working_dir=scripts&shellonly=true&tutorial=walkthroughtutorial.md) +[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/langflow-ai/langflow&working_dir=scripts&shellonly=true&tutorial=walkthroughtutorial.md) This script sets up a Debian-based VM with the Langflow package, Nginx, and the necessary configurations to run the Langflow Dev environment. +
## Spot/Preemptible Instance -[![Open in Cloud Shell - Spot Instance](https://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/logspace-ai/langflow&working_dir=scripts&shellonly=true&tutorial=walkthroughtutorial_spot.md) +[![Open in Cloud Shell - Spot Instance](https://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/langflow-ai/langflow&working_dir=scripts&shellonly=true&tutorial=walkthroughtutorial_spot.md) When running as a [spot (preemptible) instance](https://cloud.google.com/compute/docs/instances/preemptible), the code and VM will behave the same way as in a regular instance, executing the startup script to configure the environment, install necessary dependencies, and run the Langflow application. However, **due to the nature of spot instances, the VM may be terminated at any time if Google Cloud needs to reclaim the resources**. This makes spot instances suitable for fault-tolerant, stateless, or interruptible workloads that can handle unexpected terminations and restarts. ## Pricing (approximate) -> For a more accurate breakdown of costs, please use the [**GCP Pricing Calculator**](https://cloud.google.com/products/calculator) -
-| Component | Regular Cost (Hourly) | Regular Cost (Monthly) | Spot/Preemptible Cost (Hourly) | Spot/Preemptible Cost (Monthly) | Notes | -| -------------- | --------------------- | ---------------------- | ------------------------------ | ------------------------------- | ----- | -| 100 GB Disk | - | $10/month | - | $10/month | Disk cost remains the same for both regular and Spot/Preemptible VMs | -| VM (n1-standard-4) | $0.15/hr | ~$108/month | ~$0.04/hr | ~$29/month | The VM cost can be significantly reduced using a Spot/Preemptible instance | -| **Total** | **$0.15/hr** | **~$118/month** | **~$0.04/hr** | **~$39/month** | Total costs for running the VM and disk 24/7 for an entire month | +> For a more accurate breakdown of costs, please use the [**GCP Pricing Calculator**](https://cloud.google.com/products/calculator) +>
+ +| Component | Regular Cost (Hourly) | Regular Cost (Monthly) | Spot/Preemptible Cost (Hourly) | Spot/Preemptible Cost (Monthly) | Notes | +| ------------------ | --------------------- | ---------------------- | ------------------------------ | ------------------------------- | -------------------------------------------------------------------------- | +| 100 GB Disk | - | $10/month | - | $10/month | Disk cost remains the same for both regular and Spot/Preemptible VMs | +| VM (n1-standard-4) | $0.15/hr | ~$108/month | ~$0.04/hr | ~$29/month | The VM cost can be significantly reduced using a Spot/Preemptible instance | +| **Total** | **$0.15/hr** | **~$118/month** | **~$0.04/hr** | **~$39/month** | Total costs for running the VM and disk 24/7 for an entire month | diff --git a/README.md b/README.md index 4c4c2f1da..f469dbe23 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# [![Langflow](https://github.com/logspace-ai/langflow/blob/dev/docs/static/img/hero.png)](https://www.langflow.org) +# [![Langflow](https://github.com/langflow-ai/langflow/blob/dev/docs/static/img/hero.png)](https://www.langflow.org) ### [Langflow](https://www.langflow.org) is a new, visual way to build, iterate and deploy AI apps. @@ -96,7 +96,7 @@ Follow our step-by-step guide to deploy Langflow on Google Cloud Platform (GCP) Alternatively, click the **"Open in Cloud Shell"** button below to launch Google Cloud Shell, clone the Langflow repository, and start an **interactive tutorial** that will guide you through the process of setting up the necessary resources and deploying Langflow on your GCP project. -[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/logspace-ai/langflow&working_dir=scripts/gcp&shellonly=true&tutorial=walkthroughtutorial_spot.md) +[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/langflow-ai/langflow&working_dir=scripts/gcp&shellonly=true&tutorial=walkthroughtutorial_spot.md) ## Deploy on Railway @@ -104,7 +104,7 @@ Alternatively, click the **"Open in Cloud Shell"** button below to launch Google ## Deploy on Render - + Deploy to Render @@ -118,7 +118,7 @@ We welcome contributions from developers of all levels to our open-source projec # 🌟 Contributors -[![langflow contributors](https://contrib.rocks/image?repo=logspace-ai/langflow)](https://github.com/logspace-ai/langflow/graphs/contributors) +[![langflow contributors](https://contrib.rocks/image?repo=logspace-ai/langflow)](https://github.com/langflow-ai/langflow/graphs/contributors) # 📄 License diff --git a/docs/docs/contributing/community.md b/docs/docs/contributing/community.md index 6bb62641d..604487133 100644 --- a/docs/docs/contributing/community.md +++ b/docs/docs/contributing/community.md @@ -2,11 +2,11 @@ ## 🤖 Join **Langflow** Discord server - Join us to ask questions and showcase your projects. +Join us to ask questions and showcase your projects. - Let's bring together the building blocks of AI integration! +Let's bring together the building blocks of AI integration! - Langflow [Discord](https://discord.gg/EqksyE2EX9) server. +Langflow [Discord](https://discord.gg/EqksyE2EX9) server. --- @@ -15,9 +15,10 @@ Follow [@langflow_ai](https://twitter.com/langflow_ai) on **Twitter** to get the latest news about **Langflow**. --- + ## ⭐️ Star **Langflow** on GitHub -You can "star" **Langflow** in [GitHub](https://github.com/logspace-ai/langflow). +You can "star" **Langflow** in [GitHub](https://github.com/langflow-ai/langflow). By adding a star, other users will be able to find it more easily and see that it has been already useful for others. @@ -25,14 +26,12 @@ By adding a star, other users will be able to find it more easily and see that i ## 👀 Watch the GitHub repository for releases -You can "watch" **Langflow** in [GitHub](https://github.com/logspace-ai/langflow). - +You can "watch" **Langflow** in [GitHub](https://github.com/langflow-ai/langflow). If you select "Watching" instead of "Releases only" you will receive notifications when someone creates a new issue or question. You can also specify that you only want to be notified about new issues, discussions, PRs, etc. - Then you can try and help them solve those questions. --- -Thanks! 🚀 \ No newline at end of file +Thanks! 🚀 diff --git a/docs/docs/contributing/github-issues.md b/docs/docs/contributing/github-issues.md index 41cc674e1..269c976cd 100644 --- a/docs/docs/contributing/github-issues.md +++ b/docs/docs/contributing/github-issues.md @@ -1,11 +1,11 @@ # GitHub Issues -Our [issues](https://github.com/logspace-ai/langflow/issues) page is kept up to date +Our [issues](https://github.com/langflow-ai/langflow/issues) page is kept up to date with bugs, improvements, and feature requests. There is a taxonomy of labels to help with sorting and discovery of issues of interest. If you're looking for help with your code, consider posting a question on the -[GitHub Discussions board](https://github.com/logspace-ai/langflow/discussions). Please +[GitHub Discussions board](https://github.com/langflow-ai/langflow/discussions). Please understand that we won't be able to provide individual support via email. We also believe that help is much more valuable if it's **shared publicly**, so that more people can benefit from it. @@ -21,7 +21,6 @@ so that more people can benefit from it. logs or tracebacks, you can wrap them in `
` and `
`. This [collapses the content](https://developer.mozilla.org/en/docs/Web/HTML/Element/details) so it only becomes visible on click, making the issue easier to read and follow. - ## Issue labels -[See this page](https://github.com/logspace-ai/langflow/labels) for an overview of the system we use to tag our issues and pull requests. \ No newline at end of file +[See this page](https://github.com/langflow-ai/langflow/labels) for an overview of the system we use to tag our issues and pull requests. diff --git a/docs/docs/contributing/how-contribute.md b/docs/docs/contributing/how-contribute.md index 53b430496..4939edaee 100644 --- a/docs/docs/contributing/how-contribute.md +++ b/docs/docs/contributing/how-contribute.md @@ -1,6 +1,6 @@ # How to contribute? -👋 Hello there! We welcome contributions from developers of all levels to our open-source project on [GitHub](https://github.com/logspace-ai/langflow). If you'd like to contribute, please check our contributing guidelines and help make Langflow more accessible. +👋 Hello there! We welcome contributions from developers of all levels to our open-source project on [GitHub](https://github.com/langflow-ai/langflow). If you'd like to contribute, please check our contributing guidelines and help make Langflow more accessible. As an open-source project in a rapidly developing field, we are extremely open to contributions, whether in the form of a new feature, improved infra, or better documentation. @@ -10,6 +10,7 @@ To contribute to this project, please follow a ["fork and pull request"](https:/ Please do not try to push directly to this repo unless you are a maintainer. --- + ## Local development You can develop Langflow using docker compose, or locally. @@ -17,6 +18,7 @@ You can develop Langflow using docker compose, or locally. We provide a .vscode/launch.json file for debugging the backend in VSCode, which is a lot faster than using docker compose. Setting up hooks: + ```bash make init ``` @@ -48,7 +50,6 @@ And the frontend: make frontend ``` - --- ## Docker compose diff --git a/docs/docs/deployment/gcp-deployment.md b/docs/docs/deployment/gcp-deployment.md index 032426d94..bd2b48968 100644 --- a/docs/docs/deployment/gcp-deployment.md +++ b/docs/docs/deployment/gcp-deployment.md @@ -6,10 +6,9 @@ This guide will help you set up a Langflow development VM in a Google Cloud Plat > Note: When Cloud Shell opens, be sure to select **Trust repo**. Some `gcloud` commands might not run in an ephemeral Cloud Shell environment. +## Standard VM - -## Standard VM -[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/logspace-ai/langflow&working_dir=scripts&shellonly=true&tutorial=walkthroughtutorial.md) +[![Open in Cloud Shell](https://gstatic.com/cloudssh/images/open-btn.svg)](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/langflow-ai/langflow&working_dir=scripts&shellonly=true&tutorial=walkthroughtutorial.md) This script sets up a Debian-based VM with the Langflow package, Nginx, and the necessary configurations to run the Langflow Dev environment. @@ -24,11 +23,11 @@ When running as a [spot (preemptible) instance](https://cloud.google.com/compute --- ## Pricing (approximate) + > For a more accurate breakdown of costs, please use the [**GCP Pricing Calculator**](https://cloud.google.com/products/calculator) - -| Component | Regular Cost (Hourly) | Regular Cost (Monthly) | Spot/Preemptible Cost (Hourly) | Spot/Preemptible Cost (Monthly) | Notes | -| -------------- | --------------------- | ---------------------- | ------------------------------ | ------------------------------- | ----- | -| 100 GB Disk | - | $10/month | - | $10/month | Disk cost remains the same for both regular and Spot/Preemptible VMs | -| VM (n1-standard-4) | $0.15/hr | ~$108/month | ~$0.04/hr | ~$29/month | The VM cost can be significantly reduced using a Spot/Preemptible instance | -| **Total** | **$0.15/hr** | **~$118/month** | **~$0.04/hr** | **~$39/month** | Total costs for running the VM and disk 24/7 for an entire month | +| Component | Regular Cost (Hourly) | Regular Cost (Monthly) | Spot/Preemptible Cost (Hourly) | Spot/Preemptible Cost (Monthly) | Notes | +| ------------------ | --------------------- | ---------------------- | ------------------------------ | ------------------------------- | -------------------------------------------------------------------------- | +| 100 GB Disk | - | $10/month | - | $10/month | Disk cost remains the same for both regular and Spot/Preemptible VMs | +| VM (n1-standard-4) | $0.15/hr | ~$108/month | ~$0.04/hr | ~$29/month | The VM cost can be significantly reduced using a Spot/Preemptible instance | +| **Total** | **$0.15/hr** | **~$118/month** | **~$0.04/hr** | **~$39/month** | Total costs for running the VM and disk 24/7 for an entire month | diff --git a/docs/docs/guidelines/chat-widget.mdx b/docs/docs/guidelines/chat-widget.mdx index 46ed974a8..6d47e123b 100644 --- a/docs/docs/guidelines/chat-widget.mdx +++ b/docs/docs/guidelines/chat-widget.mdx @@ -78,7 +78,7 @@ The Chat Widget can be embedded into any HTML page, inside a _``_ tag, as To embed the Chat Widget using React, you'll need to insert this _` + ``` Then, declare your Web Component and encapsulate it in a React component. @@ -115,7 +115,7 @@ Finally, you can place the component anywhere in your code to display the Chat W To use it in Angular, first add this _` + ``` When you use a custom web component in an Angular template, the Angular compiler might show a warning when it doesn't recognize the custom elements by default. To suppress this warning, add _`CUSTOM_ELEMENTS_SCHEMA`_ to the module's _`@NgModule.schemas`_. @@ -185,7 +185,7 @@ Use the widget API to customize your Chat Widget: | Prop | Type | Required | Description | -| --------------------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| --------------------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- | | bot_message_style | JSON | No | Applies custom formatting to bot messages. | | chat_input_field | String | Yes | Defines the type of the input field for chat messages. | | chat_inputs | JSON | Yes | Determines the chat input elements and their respective values. | @@ -208,4 +208,4 @@ Use the widget API to customize your Chat Widget: | tweaks | JSON | No | Applies additional custom adjustments for the associated flow. | | user_message_style | JSON | No | Determines the formatting for user messages in the chat window. | | width | Number | No | Sets the width of the chat window in pixels. | -| window_title | String | No | Sets the title displayed in the chat window's header or title bar. | +| window_title | String | No | Sets the title displayed in the chat window's header or title bar. | import ThemedImage from "@theme/ThemedImage"; | diff --git a/docs/docs/guidelines/custom-component.mdx b/docs/docs/guidelines/custom-component.mdx index a509214b8..9e09cea59 100644 --- a/docs/docs/guidelines/custom-component.mdx +++ b/docs/docs/guidelines/custom-component.mdx @@ -366,7 +366,7 @@ For advanced customization, Langflow offers the option to create and load custom ### Folder Structure -Create a folder that follows the same structural conventions as the [config.yaml](https://github.com/logspace-ai/langflow/blob/dev/src/backend/base/langflow/config.yaml) file. Inside this main directory, use a `custom_components` subdirectory for your custom components. +Create a folder that follows the same structural conventions as the [config.yaml](https://github.com/langflow-ai/langflow/blob/dev/src/backend/base/langflow/config.yaml) file. Inside this main directory, use a `custom_components` subdirectory for your custom components. Inside `custom_components`, you can create a Python file for each component. Similarly, any custom agents should be housed in an `agents` subdirectory. @@ -406,4 +406,5 @@ Langflow will attempt to load all of the components found in the specified direc Once your custom components have been loaded successfully, they will appear in Langflow's sidebar. From there, you can add them to your Langflow canvas for use. However, please note that components with errors will not be available for addition to the canvas. Always ensure your code is error-free before attempting to load components. -Remember, creating custom components allows you to extend the functionality of Langflow to better suit your unique needs. Happy coding! +Remember, creating custom components allows you to extend the functionality of Langflow to better suit your unique needs. Happy coding!import ZoomableImage from "/src/theme/ZoomableImage.js"; +import Admonition from "@theme/Admonition"; diff --git a/docs/docs/whats-new/migrating-to-one-point-zero.mdx b/docs/docs/whats-new/migrating-to-one-point-zero.mdx index 987f00277..c140bdf94 100644 --- a/docs/docs/whats-new/migrating-to-one-point-zero.mdx +++ b/docs/docs/whats-new/migrating-to-one-point-zero.mdx @@ -14,7 +14,7 @@ import Admonition from "@theme/Admonition"; Langflow 1.0 is a significant update that brings many exciting changes and improvements to the platform. This guide will walk you through the key improvements and help you migrate your existing projects to the new version. -If you have any questions or need assistance during the migration process, please don't hesitate to reach out to in our [Discord](https://discord.gg/wZSWQaukgJ) or [GitHub](https://github.com/logspace-ai/langflow/issues) community. +If you have any questions or need assistance during the migration process, please don't hesitate to reach out to in our [Discord](https://discord.gg/wZSWQaukgJ) or [GitHub](https://github.com/langflow-ai/langflow/issues) community. We have a special channel in our Discord server dedicated to Langflow 1.0 migration, where you can ask questions, share your experiences, and get help from the community. diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 979953918..f64b180c7 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -44,7 +44,7 @@ module.exports = { // sidebarPath: 'sidebars.js', }, gtag: { - trackingID: 'G-XHC7G628ZP', + trackingID: "G-XHC7G628ZP", anonymizeIP: true, }, theme: { @@ -87,7 +87,7 @@ module.exports = { // right { position: "right", - href: "https://github.com/logspace-ai/langflow", + href: "https://github.com/langflow-ai/langflow", position: "right", className: "header-github-link", target: "_blank", @@ -124,7 +124,7 @@ module.exports = { }, announcementBar: { content: - '⭐️ If you like ⛓️Langflow, star it on GitHub! ⭐️', + '⭐️ If you like ⛓️Langflow, star it on GitHub! ⭐️', backgroundColor: "#E8EBF1", //Mustard Yellow #D19900 #D4B20B - Salmon #E9967A textColor: "#1C1E21", isCloseable: false, diff --git a/pyproject.toml b/pyproject.toml index cc7ac04ae..0c6730288 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ maintainers = [ "Otávio Anovazzi ", "Rodrigo Nader ", ] -repository = "https://github.com/logspace-ai/langflow" +repository = "https://github.com/langflow-ai/langflow" license = "MIT" readme = "README.md" keywords = ["nlp", "langchain", "openai", "gpt", "gui"] diff --git a/render.yaml b/render.yaml index 4c17923c6..583a3c324 100644 --- a/render.yaml +++ b/render.yaml @@ -4,7 +4,7 @@ services: name: langflow runtime: docker dockerfilePath: ./Dockerfile - repo: https://github.com/logspace-ai/langflow + repo: https://github.com/langflow-ai/langflow branch: main healthCheckPath: /health autoDeploy: false diff --git a/scripts/aws/README.ja.md b/scripts/aws/README.ja.md index b7ad49f21..86e8699bb 100644 --- a/scripts/aws/README.ja.md +++ b/scripts/aws/README.ja.md @@ -3,6 +3,7 @@ **想定時間**: 30 分 ## 説明 + Langflow on AWS では、 [AWS Cloud Development Kit](https://aws.amazon.com/cdk/?nc2=type_a) (CDK) を用いて Langflow を AWS 上にデプロイする方法を学べます。 このチュートリアルは、AWS アカウントと AWS に関する基本的な知識を有していることを前提としています。 @@ -10,44 +11,47 @@ Langflow on AWS では、 [AWS Cloud Development Kit](https://aws.amazon.com/cdk ![langflow-archi](./img/langflow-archi.png) AWS CDK によって Langflow のアプリケーションをデプロイします。アプリケーションは [Amazon CloudFront](https://aws.amazon.com/cloudfront/?nc1=h_ls) を介して配信されます。CloudFront は 2 つのオリジンを有しています。1 つ目は静的な Web サイトを配信するための [Amazon Simple Storage Service](https://aws.amazon.com/s3/?nc1=h_ls) (S3)、2 つ目は バックエンドと通信するための [Application Load Balancer](https://aws.amazon.com/elasticloadbalancing/application-load-balancer/?nc1=h_ls) (ALB) です。ALB の背後には FastAPI が動作する [AWS Fargate](https://aws.amazon.com/fargate/?nc2=type_a) 、データベースの [Amazon Aurora](https://aws.amazon.com/rds/aurora/?nc2=type_a) が作成されます。 Fargate は [Amazon Elastic Container Registry](https://aws.amazon.com/ecr/?nc1=h_ls) (ECR) に保存された Docker イメージを使用します。 -Auroraのシークレットは [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/?nc2=type_a) によって管理されます。 +Aurora のシークレットは [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/?nc2=type_a) によって管理されます。 # 環境構築とデプロイ方法 + 1. [AWS CloudShell](https://us-east-1.console.aws.amazon.com/cloudshell/home?region=us-east-1)を開きます。 1. 以下のコマンドを実行します。 - ```shell - git clone https://github.com/aws-samples/cloud9-setup-for-prototyping - cd cloud9-setup-for-prototyping - ./bin/bootstrap - ``` + + ```shell + git clone https://github.com/aws-samples/cloud9-setup-for-prototyping + cd cloud9-setup-for-prototyping + ./bin/bootstrap + ``` 1. `Done!` と表示されたら [AWS Cloud9](https://us-east-1.console.aws.amazon.com/cloud9control/home?region=us-east-1#/) から `cloud9-for-prototyping` を開きます。 - ![make-cloud9](./img/langflow-cloud9.png) + ![make-cloud9](./img/langflow-cloud9.png) 1. 以下のコマンドを実行します。 - ```shell - git clone https://github.com/logspace-ai/langflow.git - cd langflow/scripts/aws - cp .env.example .env # 環境設定を変える場合はこのファイル(.env)を編集してください。 - npm ci - cdk bootstrap - cdk deploy - ``` + ```shell + git clone https://github.com/langflow-ai/langflow.git + cd langflow/scripts/aws + cp .env.example .env # 環境設定を変える場合はこのファイル(.env)を編集してください。 + npm ci + cdk bootstrap + cdk deploy + ``` 1. 表示される URL にアクセスします。 - ```shell - Outputs: - LangflowAppStack.frontendURLXXXXXX = https://XXXXXXXXXXX.cloudfront.net - ``` + ```shell + Outputs: + LangflowAppStack.frontendURLXXXXXX = https://XXXXXXXXXXX.cloudfront.net + ``` 1. サインイン画面でユーザー名とパスワードを入力します。`.env`ファイルでユーザー名とパスワードを設定していない場合、ユーザー名は`admin`、パスワードは`123456`で設定されます。 - ![make-cloud9](./img/langflow-signin.png) + ![make-cloud9](./img/langflow-signin.png) # 環境の削除 -1. `Cloud9` で以下のコマンドを実行します。 - ```shell - bash delete-resources.sh - ``` +1. `Cloud9` で以下のコマンドを実行します。 + + ```shell + bash delete-resources.sh + ``` 1. [AWS CloudFormation](https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/getting-started)を開き、`aws-cloud9-cloud9-for-prototyping-XXXX` を選択して削除します。 - ![delete-cfn](./img/langflow-cfn.png) \ No newline at end of file + ![delete-cfn](./img/langflow-cfn.png) diff --git a/scripts/aws/README.md b/scripts/aws/README.md index 031718f75..da561747f 100644 --- a/scripts/aws/README.md +++ b/scripts/aws/README.md @@ -10,7 +10,7 @@ This tutorial assumes you have an AWS account and basic knowledge of AWS. The architecture of the application to be created: ![langflow-archi](./img/langflow-archi.png) Langflow is deployed using AWS CDK. The application is distributed via [Amazon CloudFront](https://aws.amazon.com/cloudfront/?nc1=h_ls), which has two origins: the first is [Amazon Simple Storage Service](https://aws.amazon.com/s3/?nc1=h_ls) (S3) for serving a static website, and the second is an [Application Load Balancer](https://aws.amazon.com/elasticloadbalancing/application-load-balancer/?nc1=h_ls) (ALB) for communicating with the backend. [AWS Fargate](https://aws.amazon.com/fargate/?nc2=type_a), where FastAPI runs and [Amazon Aurora](https://aws.amazon.com/rds/aurora/?nc2=type_a), the database, are created behind the ALB. -Fargate uses a Docker image stored in [Amazon Elastic Container Registry](https://aws.amazon.com/ecr/?nc1=h_ls) (ECR). +Fargate uses a Docker image stored in [Amazon Elastic Container Registry](https://aws.amazon.com/ecr/?nc1=h_ls) (ECR). Aurora's secret is managed by [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/?nc2=type_a). # How to set up your environment and deploy langflow @@ -26,14 +26,14 @@ Aurora's secret is managed by [AWS Secrets Manager](https://aws.amazon.com/secre 1. When you see `Done!` in Cloudshell, open `c9-for-langflow` from [AWS Cloud9](https://us-east-1.console.aws.amazon.com/cloud9control/home?region=us-east-1#/). ![make-cloud9](./img/langflow-cloud9-en.png) 1. Run the following command in the Cloud9 terminal. - ```shell - git clone https://github.com/logspace-ai/langflow.git - cd langflow/scripts/aws - cp .env.example .env # Edit this file if you need environment settings - npm ci - cdk bootstrap - cdk deploy - ``` + ```shell + git clone https://github.com/langflow-ai/langflow.git + cd langflow/scripts/aws + cp .env.example .env # Edit this file if you need environment settings + npm ci + cdk bootstrap + cdk deploy + ``` 1. Access the URL displayed. ```shell Outputs: @@ -50,4 +50,4 @@ Aurora's secret is managed by [AWS Secrets Manager](https://aws.amazon.com/secre ``` 1. Open [AWS CloudFormation](https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/getting-started), select `aws-cloud9-c9-for-langflow-XXXX` and delete it. ![delete-cfn](./img/langflow-cfn.png) -s \ No newline at end of file + s diff --git a/src/backend/base/langflow/__main__.py b/src/backend/base/langflow/__main__.py index bfb2a5311..b8e4d90a2 100644 --- a/src/backend/base/langflow/__main__.py +++ b/src/backend/base/langflow/__main__.py @@ -9,11 +9,6 @@ import click import httpx import typer from dotenv import load_dotenv -from langflow.main import setup_app -from langflow.services.database.utils import session_getter -from langflow.services.deps import get_db_service, get_settings_service -from langflow.services.utils import initialize_services, initialize_settings_service -from langflow.utils.logger import configure, logger from multiprocess import Process, cpu_count # type: ignore from packaging import version as pkg_version from rich import box @@ -22,6 +17,14 @@ from rich.console import Console from rich.panel import Panel from rich.table import Table +from langflow.main import setup_app +from langflow.services.database.utils import session_getter +from langflow.services.deps import get_db_service, get_settings_service +from langflow.services.utils import initialize_services, initialize_settings_service +from langflow.utils.logger import configure, logger + initialize_settings_service) +from langflow.utils.logger import configure, logger + console = Console() app = typer.Typer(no_args_is_help=True) @@ -419,7 +422,7 @@ def print_banner(host: str, port: int): ) title = f"[bold]Welcome to :chains: {styled_package_name}[/bold]\n" - info_text = "Collaborate, and contribute at our [bold][link=https://github.com/logspace-ai/langflow]GitHub Repo[/link][/bold] :rocket:" + info_text = "Collaborate, and contribute at our [bold][link=https://github.com/langflow-ai/langflow]GitHub Repo[/link][/bold] :rocket:" access_link = f"Access [link=http://{host}:{port}]http://{host}:{port}[/link]" panel_content = "\n\n".join([title, *styled_notices, info_text, access_link]) diff --git a/src/backend/base/pyproject.toml b/src/backend/base/pyproject.toml index 5565d6d8d..14b0d37bb 100644 --- a/src/backend/base/pyproject.toml +++ b/src/backend/base/pyproject.toml @@ -13,7 +13,7 @@ maintainers = [ "Otávio Anovazzi ", "Rodrigo Nader ", ] -repository = "https://github.com/logspace-ai/langflow" +repository = "https://github.com/langflow-ai/langflow" license = "MIT" readme = "README.md" keywords = ["nlp", "langchain", "openai", "gpt", "gui"] diff --git a/src/frontend/src/components/CrashErrorComponent/index.tsx b/src/frontend/src/components/CrashErrorComponent/index.tsx index 57dc83d83..978c9b340 100644 --- a/src/frontend/src/components/CrashErrorComponent/index.tsx +++ b/src/frontend/src/components/CrashErrorComponent/index.tsx @@ -28,7 +28,7 @@ export default function CrashErrorComponent({

Please report errors with detailed tracebacks on the{" "} Restart Langflow diff --git a/src/frontend/src/components/headerComponent/index.tsx b/src/frontend/src/components/headerComponent/index.tsx index 68e95cf2c..c302800c0 100644 --- a/src/frontend/src/components/headerComponent/index.tsx +++ b/src/frontend/src/components/headerComponent/index.tsx @@ -114,7 +114,7 @@ export default function Header(): JSX.Element {

{ const authorizedDomains = [ - "https://raw.githubusercontent.com/logspace-ai/langflow_examples/main/examples", - "https://api.github.com/repos/logspace-ai/langflow_examples/contents/examples", - "https://api.github.com/repos/logspace-ai/langflow", + "https://raw.githubusercontent.com/langflow-ai/langflow_examples/main/examples", + "https://api.github.com/repos/langflow-ai/langflow_examples/contents/examples", + "https://api.github.com/repos/langflow-ai/langflow", "auto_login", ]; diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index 52082abd9..920335a97 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -90,7 +90,7 @@ export async function postValidatePrompt( */ export async function getExamples(): Promise { const url = - "https://api.github.com/repos/logspace-ai/langflow_examples/contents/examples?ref=main"; + "https://api.github.com/repos/langflow-ai/langflow_examples/contents/examples?ref=main"; const response = await api.get(url); const jsonFiles = response.data.filter((file: any) => { diff --git a/src/frontend/src/utils/utils.ts b/src/frontend/src/utils/utils.ts index 91d7a72f9..afcc264f6 100644 --- a/src/frontend/src/utils/utils.ts +++ b/src/frontend/src/utils/utils.ts @@ -456,7 +456,7 @@ export function getWidgetCode( const inputs = buildInputs(); let chat_input_field = getChatInputField(flowState); - return ` + return `