Adjusted broken links. Added more info in some sections.
This commit is contained in:
parent
c6b823da49
commit
08e5e98d84
15 changed files with 136 additions and 105 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
export default [
|
export default [
|
||||||
require('/Users/rodrigonader/Repositories/logspace/langflow/docs/node_modules/infima/dist/css/default/default.css'),
|
require('/home/carlos/repo/logspace/langflow/docs/node_modules/infima/dist/css/default/default.css'),
|
||||||
require('/Users/rodrigonader/Repositories/logspace/langflow/docs/node_modules/@docusaurus/theme-classic/lib/prism-include-languages'),
|
require('/home/carlos/repo/logspace/langflow/docs/node_modules/@docusaurus/theme-classic/lib/prism-include-languages'),
|
||||||
require('/Users/rodrigonader/Repositories/logspace/langflow/docs/node_modules/@docusaurus/theme-classic/lib/nprogress'),
|
require('/home/carlos/repo/logspace/langflow/docs/node_modules/@docusaurus/theme-classic/lib/nprogress'),
|
||||||
require('/Users/rodrigonader/Repositories/logspace/langflow/docs/src/css/custom.css'),
|
require('/home/carlos/repo/logspace/langflow/docs/src/css/custom.css'),
|
||||||
require('/Users/rodrigonader/Repositories/logspace/langflow/docs/node_modules/docusaurus-plugin-image-zoom/lib/zoom'),
|
require('/home/carlos/repo/logspace/langflow/docs/node_modules/docusaurus-plugin-image-zoom/lib/zoom'),
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"unversionedId": "gcp-deployment",
|
"unversionedId": "gcp-deployment",
|
||||||
"id": "gcp-deployment",
|
"id": "gcp-deployment",
|
||||||
"title": "Deploy on Google Cloud Platform",
|
"title": "Deploy on Google Cloud Platform",
|
||||||
"description": "Run Langflow from a New Google Cloud Project",
|
"description": "Run LangFlow from a New Google Cloud Project",
|
||||||
"source": "@site/docs/gcp-deployment.md",
|
"source": "@site/docs/gcp-deployment.md",
|
||||||
"sourceDirName": ".",
|
"sourceDirName": ".",
|
||||||
"slug": "/gcp-deployment",
|
"slug": "/gcp-deployment",
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"unversionedId": "jina-deployment",
|
"unversionedId": "jina-deployment",
|
||||||
"id": "jina-deployment",
|
"id": "jina-deployment",
|
||||||
"title": "Deploy on Jina AI Cloud",
|
"title": "Deploy on Jina AI Cloud",
|
||||||
"description": "Langflow integrates with langchain-serve to provide a one-command deployment to Jina AI Cloud.",
|
"description": "LangFlow integrates with langchain-serve to provide a one-command deployment to Jina AI Cloud.",
|
||||||
"source": "@site/docs/jina-deployment.md",
|
"source": "@site/docs/jina-deployment.md",
|
||||||
"sourceDirName": ".",
|
"sourceDirName": ".",
|
||||||
"slug": "/jina-deployment",
|
"slug": "/jina-deployment",
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,7 @@
|
||||||
"gcp-deployment": {
|
"gcp-deployment": {
|
||||||
"id": "gcp-deployment",
|
"id": "gcp-deployment",
|
||||||
"title": "Deploy on Google Cloud Platform",
|
"title": "Deploy on Google Cloud Platform",
|
||||||
"description": "Run Langflow from a New Google Cloud Project",
|
"description": "Run LangFlow from a New Google Cloud Project",
|
||||||
"sidebar": "docs"
|
"sidebar": "docs"
|
||||||
},
|
},
|
||||||
"github-issues": {
|
"github-issues": {
|
||||||
|
|
@ -265,7 +265,7 @@
|
||||||
"jina-deployment": {
|
"jina-deployment": {
|
||||||
"id": "jina-deployment",
|
"id": "jina-deployment",
|
||||||
"title": "Deploy on Jina AI Cloud",
|
"title": "Deploy on Jina AI Cloud",
|
||||||
"description": "Langflow integrates with langchain-serve to provide a one-command deployment to Jina AI Cloud.",
|
"description": "LangFlow integrates with langchain-serve to provide a one-command deployment to Jina AI Cloud.",
|
||||||
"sidebar": "docs"
|
"sidebar": "docs"
|
||||||
},
|
},
|
||||||
"midjourney-prompt-chain": {
|
"midjourney-prompt-chain": {
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,9 @@
|
||||||
"tagsPath": "/tags",
|
"tagsPath": "/tags",
|
||||||
"isLast": true,
|
"isLast": true,
|
||||||
"routePriority": -1,
|
"routePriority": -1,
|
||||||
"sidebarFilePath": "/Users/rodrigonader/Repositories/logspace/langflow/docs/sidebars.js",
|
"sidebarFilePath": "/home/carlos/repo/logspace/langflow/docs/sidebars.js",
|
||||||
"contentPath": "/Users/rodrigonader/Repositories/logspace/langflow/docs/docs",
|
"contentPath": "/home/carlos/repo/logspace/langflow/docs/docs",
|
||||||
"contentPathLocalized": "/Users/rodrigonader/Repositories/logspace/langflow/docs/i18n/en/docusaurus-plugin-content-docs/current",
|
"contentPathLocalized": "/home/carlos/repo/logspace/langflow/docs/i18n/en/docusaurus-plugin-content-docs/current",
|
||||||
"docs": [
|
"docs": [
|
||||||
{
|
{
|
||||||
"unversionedId": "buffer-memory",
|
"unversionedId": "buffer-memory",
|
||||||
|
|
@ -201,7 +201,7 @@
|
||||||
"unversionedId": "gcp-deployment",
|
"unversionedId": "gcp-deployment",
|
||||||
"id": "gcp-deployment",
|
"id": "gcp-deployment",
|
||||||
"title": "Deploy on Google Cloud Platform",
|
"title": "Deploy on Google Cloud Platform",
|
||||||
"description": "Run Langflow from a New Google Cloud Project",
|
"description": "Run LangFlow from a New Google Cloud Project",
|
||||||
"source": "@site/docs/gcp-deployment.md",
|
"source": "@site/docs/gcp-deployment.md",
|
||||||
"sourceDirName": ".",
|
"sourceDirName": ".",
|
||||||
"slug": "/gcp-deployment",
|
"slug": "/gcp-deployment",
|
||||||
|
|
@ -358,7 +358,7 @@
|
||||||
"unversionedId": "jina-deployment",
|
"unversionedId": "jina-deployment",
|
||||||
"id": "jina-deployment",
|
"id": "jina-deployment",
|
||||||
"title": "Deploy on Jina AI Cloud",
|
"title": "Deploy on Jina AI Cloud",
|
||||||
"description": "Langflow integrates with langchain-serve to provide a one-command deployment to Jina AI Cloud.",
|
"description": "LangFlow integrates with langchain-serve to provide a one-command deployment to Jina AI Cloud.",
|
||||||
"source": "@site/docs/jina-deployment.md",
|
"source": "@site/docs/jina-deployment.md",
|
||||||
"sourceDirName": ".",
|
"sourceDirName": ".",
|
||||||
"slug": "/jina-deployment",
|
"slug": "/jina-deployment",
|
||||||
|
|
|
||||||
|
|
@ -32,11 +32,11 @@ export default {
|
||||||
{
|
{
|
||||||
"docs": {
|
"docs": {
|
||||||
"routeBasePath": "/",
|
"routeBasePath": "/",
|
||||||
"sidebarPath": "/Users/rodrigonader/Repositories/logspace/langflow/docs/sidebars.js",
|
"sidebarPath": "/home/carlos/repo/logspace/langflow/docs/sidebars.js",
|
||||||
"path": "docs"
|
"path": "docs"
|
||||||
},
|
},
|
||||||
"theme": {
|
"theme": {
|
||||||
"customCss": "/Users/rodrigonader/Repositories/logspace/langflow/docs/src/css/custom.css"
|
"customCss": "/home/carlos/repo/logspace/langflow/docs/src/css/custom.css"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ export default {
|
||||||
'content---multiple-vectorstores-3-c-5-02d': [() => import(/* webpackChunkName: 'content---multiple-vectorstores-3-c-5-02d' */ '@site/docs/multiple-vectorstores.mdx'), '@site/docs/multiple-vectorstores.mdx', require.resolveWeak('@site/docs/multiple-vectorstores.mdx')],
|
'content---multiple-vectorstores-3-c-5-02d': [() => import(/* webpackChunkName: 'content---multiple-vectorstores-3-c-5-02d' */ '@site/docs/multiple-vectorstores.mdx'), '@site/docs/multiple-vectorstores.mdx', require.resolveWeak('@site/docs/multiple-vectorstores.mdx')],
|
||||||
'content---python-functionc-5-e-14f': [() => import(/* webpackChunkName: 'content---python-functionc-5-e-14f' */ '@site/docs/python-function.mdx'), '@site/docs/python-function.mdx', require.resolveWeak('@site/docs/python-function.mdx')],
|
'content---python-functionc-5-e-14f': [() => import(/* webpackChunkName: 'content---python-functionc-5-e-14f' */ '@site/docs/python-function.mdx'), '@site/docs/python-function.mdx', require.resolveWeak('@site/docs/python-function.mdx')],
|
||||||
'content---serp-api-toolaea-bee': [() => import(/* webpackChunkName: 'content---serp-api-toolaea-bee' */ '@site/docs/serp-api-tool.mdx'), '@site/docs/serp-api-tool.mdx', require.resolveWeak('@site/docs/serp-api-tool.mdx')],
|
'content---serp-api-toolaea-bee': [() => import(/* webpackChunkName: 'content---serp-api-toolaea-bee' */ '@site/docs/serp-api-tool.mdx'), '@site/docs/serp-api-tool.mdx', require.resolveWeak('@site/docs/serp-api-tool.mdx')],
|
||||||
'plugin---46-c-fdc': [() => import(/* webpackChunkName: 'plugin---46-c-fdc' */ '/Users/rodrigonader/Repositories/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json'), '/Users/rodrigonader/Repositories/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json', require.resolveWeak('/Users/rodrigonader/Repositories/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json')],
|
'plugin---8-d-8-3f8': [() => import(/* webpackChunkName: 'plugin---8-d-8-3f8' */ '/home/carlos/repo/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json'), '/home/carlos/repo/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json', require.resolveWeak('/home/carlos/repo/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json')],
|
||||||
'plugin---docusaurus-debugf-67-8e6': [() => import(/* webpackChunkName: 'plugin---docusaurus-debugf-67-8e6' */ '/Users/rodrigonader/Repositories/logspace/langflow/docs/.docusaurus/docusaurus-plugin-debug/default/plugin-route-context-module-100.json'), '/Users/rodrigonader/Repositories/logspace/langflow/docs/.docusaurus/docusaurus-plugin-debug/default/plugin-route-context-module-100.json', require.resolveWeak('/Users/rodrigonader/Repositories/logspace/langflow/docs/.docusaurus/docusaurus-plugin-debug/default/plugin-route-context-module-100.json')],
|
'plugin---docusaurus-debug-667-210': [() => import(/* webpackChunkName: 'plugin---docusaurus-debug-667-210' */ '/home/carlos/repo/logspace/langflow/docs/.docusaurus/docusaurus-plugin-debug/default/plugin-route-context-module-100.json'), '/home/carlos/repo/logspace/langflow/docs/.docusaurus/docusaurus-plugin-debug/default/plugin-route-context-module-100.json', require.resolveWeak('/home/carlos/repo/logspace/langflow/docs/.docusaurus/docusaurus-plugin-debug/default/plugin-route-context-module-100.json')],
|
||||||
'plugin---markdown-pagea-28-82c': [() => import(/* webpackChunkName: 'plugin---markdown-pagea-28-82c' */ '/Users/rodrigonader/Repositories/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json'), '/Users/rodrigonader/Repositories/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json', require.resolveWeak('/Users/rodrigonader/Repositories/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json')],
|
'plugin---markdown-page-3-a-8-829': [() => import(/* webpackChunkName: 'plugin---markdown-page-3-a-8-829' */ '/home/carlos/repo/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json'), '/home/carlos/repo/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json', require.resolveWeak('/home/carlos/repo/logspace/langflow/docs/.docusaurus/docusaurus-plugin-content-pages/default/plugin-route-context-module-100.json')],
|
||||||
'versionMetadata---935-fcf': [() => import(/* webpackChunkName: 'versionMetadata---935-fcf' */ '~docs/default/version-current-metadata-prop-751.json'), '~docs/default/version-current-metadata-prop-751.json', require.resolveWeak('~docs/default/version-current-metadata-prop-751.json')],};
|
'versionMetadata---935-fcf': [() => import(/* webpackChunkName: 'versionMetadata---935-fcf' */ '~docs/default/version-current-metadata-prop-751.json'), '~docs/default/version-current-metadata-prop-751.json', require.resolveWeak('~docs/default/version-current-metadata-prop-751.json')],};
|
||||||
|
|
|
||||||
|
|
@ -4,47 +4,47 @@ import ComponentCreator from '@docusaurus/ComponentCreator';
|
||||||
export default [
|
export default [
|
||||||
{
|
{
|
||||||
path: '/__docusaurus/debug',
|
path: '/__docusaurus/debug',
|
||||||
component: ComponentCreator('/__docusaurus/debug', 'd49'),
|
component: ComponentCreator('/__docusaurus/debug', '437'),
|
||||||
exact: true
|
exact: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/__docusaurus/debug/config',
|
path: '/__docusaurus/debug/config',
|
||||||
component: ComponentCreator('/__docusaurus/debug/config', 'c5a'),
|
component: ComponentCreator('/__docusaurus/debug/config', 'f3c'),
|
||||||
exact: true
|
exact: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/__docusaurus/debug/content',
|
path: '/__docusaurus/debug/content',
|
||||||
component: ComponentCreator('/__docusaurus/debug/content', 'c19'),
|
component: ComponentCreator('/__docusaurus/debug/content', '5ed'),
|
||||||
exact: true
|
exact: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/__docusaurus/debug/globalData',
|
path: '/__docusaurus/debug/globalData',
|
||||||
component: ComponentCreator('/__docusaurus/debug/globalData', '338'),
|
component: ComponentCreator('/__docusaurus/debug/globalData', '6e2'),
|
||||||
exact: true
|
exact: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/__docusaurus/debug/metadata',
|
path: '/__docusaurus/debug/metadata',
|
||||||
component: ComponentCreator('/__docusaurus/debug/metadata', '39f'),
|
component: ComponentCreator('/__docusaurus/debug/metadata', '00b'),
|
||||||
exact: true
|
exact: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/__docusaurus/debug/registry',
|
path: '/__docusaurus/debug/registry',
|
||||||
component: ComponentCreator('/__docusaurus/debug/registry', 'e70'),
|
component: ComponentCreator('/__docusaurus/debug/registry', '46d'),
|
||||||
exact: true
|
exact: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/__docusaurus/debug/routes',
|
path: '/__docusaurus/debug/routes',
|
||||||
component: ComponentCreator('/__docusaurus/debug/routes', 'b1f'),
|
component: ComponentCreator('/__docusaurus/debug/routes', 'ce2'),
|
||||||
exact: true
|
exact: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/markdown-page',
|
path: '/markdown-page',
|
||||||
component: ComponentCreator('/markdown-page', 'b57'),
|
component: ComponentCreator('/markdown-page', 'd68'),
|
||||||
exact: true
|
exact: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
component: ComponentCreator('/', '5b5'),
|
component: ComponentCreator('/', '6c4'),
|
||||||
routes: [
|
routes: [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
|
|
|
||||||
|
|
@ -1,58 +1,58 @@
|
||||||
{
|
{
|
||||||
"/__docusaurus/debug-d49": {
|
"/__docusaurus/debug-437": {
|
||||||
"__comp": "__comp---theme-debug-config-23-a-2ff",
|
"__comp": "__comp---theme-debug-config-23-a-2ff",
|
||||||
"__context": {
|
"__context": {
|
||||||
"plugin": "plugin---docusaurus-debugf-67-8e6"
|
"plugin": "plugin---docusaurus-debug-667-210"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/__docusaurus/debug/config-c5a": {
|
"/__docusaurus/debug/config-f3c": {
|
||||||
"__comp": "__comp---theme-debug-config-23-a-2ff",
|
"__comp": "__comp---theme-debug-config-23-a-2ff",
|
||||||
"__context": {
|
"__context": {
|
||||||
"plugin": "plugin---docusaurus-debugf-67-8e6"
|
"plugin": "plugin---docusaurus-debug-667-210"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/__docusaurus/debug/content-c19": {
|
"/__docusaurus/debug/content-5ed": {
|
||||||
"__comp": "__comp---theme-debug-contentba-8-ce7",
|
"__comp": "__comp---theme-debug-contentba-8-ce7",
|
||||||
"__context": {
|
"__context": {
|
||||||
"plugin": "plugin---docusaurus-debugf-67-8e6"
|
"plugin": "plugin---docusaurus-debug-667-210"
|
||||||
},
|
},
|
||||||
"allContent": "allContent---docusaurus-debug-content-246-9aa"
|
"allContent": "allContent---docusaurus-debug-content-246-9aa"
|
||||||
},
|
},
|
||||||
"/__docusaurus/debug/globalData-338": {
|
"/__docusaurus/debug/globalData-6e2": {
|
||||||
"__comp": "__comp---theme-debug-global-dataede-0fa",
|
"__comp": "__comp---theme-debug-global-dataede-0fa",
|
||||||
"__context": {
|
"__context": {
|
||||||
"plugin": "plugin---docusaurus-debugf-67-8e6"
|
"plugin": "plugin---docusaurus-debug-667-210"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/__docusaurus/debug/metadata-39f": {
|
"/__docusaurus/debug/metadata-00b": {
|
||||||
"__comp": "__comp---theme-debug-site-metadata-68-e-3d4",
|
"__comp": "__comp---theme-debug-site-metadata-68-e-3d4",
|
||||||
"__context": {
|
"__context": {
|
||||||
"plugin": "plugin---docusaurus-debugf-67-8e6"
|
"plugin": "plugin---docusaurus-debug-667-210"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/__docusaurus/debug/registry-e70": {
|
"/__docusaurus/debug/registry-46d": {
|
||||||
"__comp": "__comp---theme-debug-registry-679-501",
|
"__comp": "__comp---theme-debug-registry-679-501",
|
||||||
"__context": {
|
"__context": {
|
||||||
"plugin": "plugin---docusaurus-debugf-67-8e6"
|
"plugin": "plugin---docusaurus-debug-667-210"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/__docusaurus/debug/routes-b1f": {
|
"/__docusaurus/debug/routes-ce2": {
|
||||||
"__comp": "__comp---theme-debug-routes-946-699",
|
"__comp": "__comp---theme-debug-routes-946-699",
|
||||||
"__context": {
|
"__context": {
|
||||||
"plugin": "plugin---docusaurus-debugf-67-8e6"
|
"plugin": "plugin---docusaurus-debug-667-210"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/markdown-page-b57": {
|
"/markdown-page-d68": {
|
||||||
"__comp": "__comp---theme-mdx-page-1-f-3-b90",
|
"__comp": "__comp---theme-mdx-page-1-f-3-b90",
|
||||||
"__context": {
|
"__context": {
|
||||||
"plugin": "plugin---markdown-pagea-28-82c"
|
"plugin": "plugin---markdown-page-3-a-8-829"
|
||||||
},
|
},
|
||||||
"content": "content---markdown-page-393-028"
|
"content": "content---markdown-page-393-028"
|
||||||
},
|
},
|
||||||
"/-5b5": {
|
"/-6c4": {
|
||||||
"__comp": "__comp---theme-doc-page-1-be-9be",
|
"__comp": "__comp---theme-doc-page-1-be-9be",
|
||||||
"__context": {
|
"__context": {
|
||||||
"plugin": "plugin---46-c-fdc"
|
"plugin": "plugin---8-d-8-3f8"
|
||||||
},
|
},
|
||||||
"versionMetadata": "versionMetadata---935-fcf"
|
"versionMetadata": "versionMetadata---935-fcf"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,18 @@
|
||||||
# Deploy on Google Cloud Platform
|
# Deploy on Google Cloud Platform
|
||||||
|
|
||||||
## Run Langflow from a New Google Cloud Project
|
## Run LangFlow from a New Google Cloud Project
|
||||||
|
|
||||||
This guide will help you set up a Langflow development VM in a Google Cloud Platform project using Google Cloud Shell.
|
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.
|
:::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
|
||||||
[](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/logspace-ai/langflow&working_dir=scripts&shellonly=true&tutorial=walkthroughtutorial.md)
|
[](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/logspace-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.
|
This script sets up a Debian-based VM with the LangFlow package, Nginx, and the necessary configurations to run the LangFlow Dev environment.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -18,7 +20,7 @@ This script sets up a Debian-based VM with the Langflow package, Nginx, and the
|
||||||
|
|
||||||
[](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/genome21/langflow&working_dir=scripts&shellonly=true&tutorial=walkthroughtutorial_spot.md)
|
[](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/genome21/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.
|
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.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,24 @@ 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.
|
Please do not try to push directly to this repo unless you are a maintainer.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
## Local development
|
||||||
|
|
||||||
## Run Locally
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
This will install the pre-commit hooks, which will run `make format` on every commit.
|
||||||
|
|
||||||
|
It is advised to run `make lint` before pushing to the repository.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Run locally
|
||||||
|
|
||||||
LangFlow can run locally by cloning the repository and installing the dependencies. We recommend using a virtual environment to isolate the dependencies from your system.
|
LangFlow can run locally by cloning the repository and installing the dependencies. We recommend using a virtual environment to isolate the dependencies from your system.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Deploy on Jina AI Cloud
|
# Deploy on Jina AI Cloud
|
||||||
|
|
||||||
Langflow integrates with langchain-serve to provide a one-command deployment to [Jina AI Cloud](https://github.com/jina-ai/langchain-serve).
|
LangFlow integrates with langchain-serve to provide a one-command deployment to [Jina AI Cloud](https://github.com/jina-ai/langchain-serve).
|
||||||
|
|
||||||
Start by installing `langchain-serve` with
|
Start by installing `langchain-serve` with
|
||||||
|
|
||||||
|
|
@ -49,29 +49,43 @@ langflow --jcloud
|
||||||
🔗 Click on the link to open the server (please allow ~1-2 minutes for the server to startup): https://langflow-e3dd8820ec.wolf.jina.ai/
|
🔗 Click on the link to open the server (please allow ~1-2 minutes for the server to startup): https://langflow-e3dd8820ec.wolf.jina.ai/
|
||||||
📖 Read more about managing the server: https://github.com/jina-ai/langchain-serve
|
📖 Read more about managing the server: https://github.com/jina-ai/langchain-serve
|
||||||
```
|
```
|
||||||
## API Usage
|
## API Usage (with python)
|
||||||
|
|
||||||
You can use Langflow directly on your browser or the API endpoints on Jina AI Cloud to interact with the server.
|
You can use LangFlow directly on your browser or the API endpoints on Jina AI Cloud to interact with the server.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import json
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
FLOW_PATH = "Time_traveller.json"
|
BASE_API_URL = "https://langflow-e3dd8820ec.wolf.jina.ai/api/v1/predict"
|
||||||
|
FLOW_ID = "864c4f98-2e59-468b-8e13-79cd8da07468"
|
||||||
|
# You can tweak the flow by adding a tweaks dictionary
|
||||||
|
# e.g {"OpenAI-XXXXX": {"model_name": "gpt-4"}}
|
||||||
|
TWEAKS = {
|
||||||
|
"ChatOpenAI-g4jEr": {},
|
||||||
|
"ConversationChain-UidfJ": {}
|
||||||
|
}
|
||||||
|
|
||||||
# HOST = 'http://localhost:7860'
|
def run_flow(message: str, flow_id: str, tweaks: dict = None) -> dict:
|
||||||
HOST = 'https://langflow-f1ed20e309.wolf.jina.ai'
|
"""
|
||||||
API_URL = f'{HOST}/predict'
|
Run a flow with a given message and optional tweaks.
|
||||||
|
|
||||||
def predict(message):
|
:param message: The message to send to the flow
|
||||||
with open(FLOW_PATH, "r") as f:
|
:param flow_id: The ID of the flow to run
|
||||||
json_data = json.load(f)
|
:param tweaks: Optional tweaks to customize the flow
|
||||||
payload = {'exported_flow': json_data, 'message': message}
|
:return: The JSON response from the flow
|
||||||
response = requests.post(API_URL, json=payload)
|
"""
|
||||||
|
api_url = f"{BASE_API_URL}/{flow_id}"
|
||||||
|
|
||||||
|
payload = {"message": message}
|
||||||
|
|
||||||
|
if tweaks:
|
||||||
|
payload["tweaks"] = tweaks
|
||||||
|
|
||||||
|
response = requests.post(api_url, json=payload)
|
||||||
return response.json()
|
return response.json()
|
||||||
|
|
||||||
|
# Setup any tweaks you want to apply to the flow
|
||||||
predict('Take me to 1920s Bangalore')
|
print(run_flow("Your message", flow_id=FLOW_ID, tweaks=TWEAKS))
|
||||||
```
|
```
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
|
@ -82,6 +96,6 @@ You can use Langflow directly on your browser or the API endpoints on Jina AI Cl
|
||||||
|
|
||||||
:::info
|
:::info
|
||||||
|
|
||||||
Read more about resource customization, cost, and management of Langflow apps on Jina AI Cloud in the **[langchain-serve](https://github.com/jina-ai/langchain-serve)** repository.
|
Read more about resource customization, cost, and management of LangFlow apps on Jina AI Cloud in the **[langchain-serve](https://github.com/jina-ai/langchain-serve)** repository.
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
@ -47,7 +47,7 @@ import ZoomableImage from '/src/theme/ZoomableImage.js';
|
||||||
- [`OpenAIEmbedding`](https://python.langchain.com/docs/modules/data_connection/text_embedding/integrations/openai)
|
- [`OpenAIEmbedding`](https://python.langchain.com/docs/modules/data_connection/text_embedding/integrations/openai)
|
||||||
- [`Chroma`](https://python.langchain.com/docs/modules/data_connection/vectorstores/integrations/chroma)
|
- [`Chroma`](https://python.langchain.com/docs/modules/data_connection/vectorstores/integrations/chroma)
|
||||||
- [`VectorStoreInfo`](https://python.langchain.com/docs/modules/data_connection/vectorstores/)
|
- [`VectorStoreInfo`](https://python.langchain.com/docs/modules/data_connection/vectorstores/)
|
||||||
- [`ChatOpenAI`](https://python.langchain.com/docs/modules/model_io/models/chat/integrations/openai)
|
- [`OpenAI`](https://python.langchain.com/docs/modules/model_io/models/llms/integrations/openai)
|
||||||
- [`VectorStoreRouterToolkit`](https://python.langchain.com/docs/modules/agents/toolkits/vectorstore)
|
- [`VectorStoreRouterToolkit`](https://python.langchain.com/docs/modules/agents/toolkits/vectorstore)
|
||||||
- [`VectorStoreRouterAgent`](https://python.langchain.com/docs/modules/agents/toolkits/vectorstore)
|
- [`VectorStoreRouterAgent`](https://python.langchain.com/docs/modules/agents/toolkits/vectorstore)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ The `AgentInitializer` component is a quick way to construct an agent from the m
|
||||||
|
|
||||||
|
|
||||||
:::info
|
:::info
|
||||||
The `PythonFunction` is a custom component that uses the LangChain 🦜🔗 tool decorator. Learn more about it [here](https://python.langchain.com/en/latest/modules/agents/tools/custom_tools.html#using-the-tool-decorator).
|
The `PythonFunction` is a custom component that uses the LangChain 🦜🔗 tool decorator. Learn more about it [here](https://python.langchain.com/docs/modules/agents/tools/how_to/custom_tools).
|
||||||
:::
|
:::
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -44,8 +44,7 @@ import ZoomableImage from '/src/theme/ZoomableImage.js';
|
||||||
#### <a target="\_blank" href="json_files/Python_Function.json" download>Download Flow</a>
|
#### <a target="\_blank" href="json_files/Python_Function.json" download>Download Flow</a>
|
||||||
|
|
||||||
:::note LangChain Components 🦜🔗
|
:::note LangChain Components 🦜🔗
|
||||||
- [`OpenAI`](https://python.langchain.com/docs/modules/model_io/models/llms/integrations/openai)
|
- [`PythonFunctionTool`](https://python.langchain.com/docs/modules/agents/tools/how_to/custom_tools)
|
||||||
- [`Tool`](https://python.langchain.com/docs/modules/agents/tools/)
|
- [`ChatOpenAI`](https://python.langchain.com/docs/modules/model_io/models/chat/integrations/openai)
|
||||||
- [`ConversationBufferMemory`](https://python.langchain.com/docs/modules/memory/how_to/buffer)
|
- [`AgentInitializer`](https://python.langchain.com/docs/modules/agents/)
|
||||||
- [`initialize_agent`](https://python.langchain.com/docs/modules/agents/)
|
|
||||||
:::
|
:::
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ The `ZeroShotAgent` takes the `LLMChain` and the `Search` tool as inputs, using
|
||||||
|
|
||||||
|
|
||||||
:::info
|
:::info
|
||||||
Learn more about the Serp API [here](https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html).
|
Learn more about the Serp API [here](https://python.langchain.com/docs/modules/agents/tools/integrations/serpapi).
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## ⛓️ LangFlow Example
|
## ⛓️ LangFlow Example
|
||||||
|
|
@ -38,9 +38,9 @@ import ZoomableImage from '/src/theme/ZoomableImage.js';
|
||||||
#### <a target="\_blank" href="json_files/SerpAPI_Tool.json" download>Download Flow</a>
|
#### <a target="\_blank" href="json_files/SerpAPI_Tool.json" download>Download Flow</a>
|
||||||
|
|
||||||
:::note LangChain Components 🦜🔗
|
:::note LangChain Components 🦜🔗
|
||||||
- [`SerpAPI`](https://python.langchain.com/docs/modules/agents/tools/integrations/serpapi)
|
|
||||||
- [`ZeroShotPrompt`](https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/)
|
- [`ZeroShotPrompt`](https://python.langchain.com/docs/modules/model_io/prompts/prompt_templates/)
|
||||||
- [`ChatOpenAI`](https://python.langchain.com/docs/modules/model_io/models/llms/integrations/openai)
|
- [`OpenAI`](https://python.langchain.com/docs/modules/model_io/models/llms/integrations/openai)
|
||||||
- [`LLMChain`](https://python.langchain.com/docs/modules/chains/foundational/llm_chain)
|
- [`LLMChain`](https://python.langchain.com/docs/modules/chains/foundational/llm_chain)
|
||||||
|
- [`Search`](https://python.langchain.com/docs/modules/agents/tools/integrations/serpapi)
|
||||||
- [`ZeroShotAgent`](https://python.langchain.com/docs/modules/agents/how_to/custom_mrkl_agent)
|
- [`ZeroShotAgent`](https://python.langchain.com/docs/modules/agents/how_to/custom_mrkl_agent)
|
||||||
:::
|
:::
|
||||||
Loading…
Add table
Add a link
Reference in a new issue