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
|
|
@ -1,12 +1,18 @@
|
|||
---
|
||||
title: Folders
|
||||
title: My Collection
|
||||
sidebar_position: 3
|
||||
slug: /365085a8-a90a-43f9-a779-f8769ec7eca1
|
||||
---
|
||||
|
||||
|
||||
|
||||
## **Collections and Projects** {#a259c11235144b18b3ae7a8265a2e6f5}
|
||||
:::info
|
||||
|
||||
This page may contain outdated information. It will be updated as soon as possible.
|
||||
|
||||
:::
|
||||
|
||||
|
||||
|
||||
|
||||
My Collection is a space in Langflow where users can manage, organize, and access their flows and components. Flows and components are displayed as individual cards that provide relevant information.
|
||||
|
|
@ -24,6 +30,9 @@ Click on a flow card to open it in Langflow Workspace or use the **Playground B
|
|||
## Folders {#776a3866273f4efbbbb2febdfc1baa12}
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
Folders can help you keep your projects organized in Langflow. They help you manage and categorize your work efficiently, making it easier to find and access the resources you need.
|
||||
|
||||
|
||||
|
|
@ -91,6 +100,5 @@ Langflow
|
|||
└── Documents
|
||||
├── RAG Project
|
||||
└── Advanced RAG Project
|
||||
|
||||
```
|
||||
|
||||
|
|
@ -6,7 +6,7 @@ slug: /configuration-api-keys
|
|||
|
||||
|
||||
|
||||
:::caution
|
||||
:::info
|
||||
|
||||
This page may contain outdated information. It will be updated as soon as possible.
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ This page may contain outdated information. It will be updated as soon as possib
|
|||
Langflow provides an API key functionality that allows users to access their individual components and flows without traditional login authentication. The API key is a user-specific token that can be included in the request header or query parameter to authenticate API calls. This documentation outlines how to generate, use, and manage API keys in Langflow.
|
||||
|
||||
|
||||
:::caution
|
||||
:::info
|
||||
|
||||
The default user and password are set using the LANGFLOW_SUPERUSER and LANGFLOW_SUPERUSER_PASSWORD environment variables. The default values are langflow and langflow, respectively.
|
||||
|
||||
|
|
|
|||
|
|
@ -6,18 +6,25 @@ slug: /configuration-authentication
|
|||
|
||||
|
||||
|
||||
:::info
|
||||
|
||||
This page may contain outdated information. It will be updated as soon as possible.
|
||||
|
||||
:::
|
||||
|
||||
|
||||
|
||||
|
||||
## Sign Up and Sign In {#f480dac5d2094d75a433de0b8e195641}
|
||||
|
||||
|
||||
> ⚠️ WARNING
|
||||
> This page may contain outdated information. It will be updated as soon as possible.
|
||||
>
|
||||
---
|
||||
|
||||
|
||||
The login functionality in Langflow serves to authenticate users and protect sensitive routes in the application. Starting from version 0.5, Langflow introduces an enhanced login mechanism that is governed by a few environment variables. This allows new secure features.
|
||||
|
||||
|
||||
## Environment variables {#3ed7cae6f5324ba0ac14783cf2a6cc07}
|
||||
## Environment Variables {#3ed7cae6f5324ba0ac14783cf2a6cc07}
|
||||
|
||||
|
||||
The following environment variables are crucial in configuring the login settings:
|
||||
|
|
@ -37,9 +44,9 @@ langflow run --env-file .env
|
|||
```
|
||||
|
||||
|
||||
> ℹ︎ INFO
|
||||
> It is critical not to expose these environment variables in your code repository. Always set them securely in your deployment environment, for example, using Docker secrets, Kubernetes ConfigMaps/Secrets, or dedicated secure environment configuration systems like AWS Secrets Manager.
|
||||
>
|
||||
> ℹ︎ INFO
|
||||
> It is critical not to expose these environment variables in your code repository. Always set them securely in your deployment environment, for example, using Docker secrets, Kubernetes ConfigMaps/Secrets, or dedicated secure environment configuration systems like AWS Secrets Manager.
|
||||
>
|
||||
|
||||
|
||||
### _`LANGFLOW_AUTO_LOGIN`_ {#8b10059e0fbc44f3bc8ce63fe7692e7e}
|
||||
|
|
|
|||
|
|
@ -6,8 +6,13 @@ slug: /configuration-backend-only
|
|||
|
||||
|
||||
|
||||
> ⚠️ WARNING
|
||||
> This page may contain outdated information. It will be updated as soon as possible.
|
||||
:::info
|
||||
|
||||
This page may contain outdated information. It will be updated as soon as possible.
|
||||
|
||||
:::
|
||||
|
||||
|
||||
|
||||
|
||||
You can run Langflow in `--backend-only` mode to expose your Langflow app as an API, without running the frontend UI.
|
||||
|
|
@ -115,11 +120,11 @@ def run_flow(message: str,
|
|||
headers = {"x-api-key": api_key}
|
||||
response = requests.post(api_url, json=payload, headers=headers)
|
||||
return response.json()
|
||||
|
||||
|
||||
# Setup any tweaks you want to apply to the flow
|
||||
|
||||
|
||||
message = "message"
|
||||
|
||||
|
||||
print(run_flow(message=message, flow_id=FLOW_ID))
|
||||
|
||||
```
|
||||
|
|
|
|||
|
|
@ -6,9 +6,13 @@ slug: /configuration-cli
|
|||
|
||||
|
||||
|
||||
> ⚠️ WARNING
|
||||
> This page may contain outdated information. It will be updated as soon as possible.
|
||||
>
|
||||
:::info
|
||||
|
||||
This page may contain outdated information. It will be updated as soon as possible.
|
||||
|
||||
:::
|
||||
|
||||
|
||||
|
||||
|
||||
Langflow's Command Line Interface (CLI) is a powerful tool that allows you to interact with the Langflow server from the command line. The CLI provides a wide range of commands to help you shape Langflow to your needs.
|
||||
|
|
@ -188,7 +192,6 @@ Create a superuser for Langflow.
|
|||
langflow superuser
|
||||
# or
|
||||
python -m langflow superuser
|
||||
|
||||
```
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue