add-content
This commit is contained in:
parent
10ad5282a3
commit
070215fbf2
3 changed files with 114 additions and 0 deletions
27
docs/docs/getting-started/huggingface-spaces.mdx
Normal file
27
docs/docs/getting-started/huggingface-spaces.mdx
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
import ThemedImage from "@theme/ThemedImage";
|
||||||
|
import useBaseUrl from "@docusaurus/useBaseUrl";
|
||||||
|
import ZoomableImage from "/src/theme/ZoomableImage.js";
|
||||||
|
import Admonition from "@theme/Admonition";
|
||||||
|
|
||||||
|
# 🤗 HuggingFace Spaces
|
||||||
|
|
||||||
|
Hugging Face provides a great alternative for running Langflow in their Spaces environment. This means you can run Langflow without any local installation required.
|
||||||
|
|
||||||
|
The first step is to go to the [Langflow Space](https://huggingface.co/spaces/Langflow/Langflow?duplicate=true) or [Langflow 1.0 Preview Space](https://huggingface.co/spaces/Langflow/Langflow-Preview?duplicate=true)
|
||||||
|
|
||||||
|
Remember to use a Chromium-based browser for the best experience. You'll be presented with the following screen:
|
||||||
|
|
||||||
|
<ZoomableImage
|
||||||
|
alt="Docusaurus themed image"
|
||||||
|
sources={{
|
||||||
|
light: "img/duplicate-space.png",
|
||||||
|
dark: "img/duplicate-space.png",
|
||||||
|
}}
|
||||||
|
style={{ width: "100%", margin: "20px auto" }}
|
||||||
|
/>
|
||||||
|
|
||||||
|
From here, just name your Space, define the visibility (Public or Private), and click on `Duplicate Space` to start the installation process. When that is done, you'll be redirected to the Space's main page to start using Langflow right away!
|
||||||
|
|
||||||
|
Once you get Langflow running, click on New Project in the top right corner of the screen. Langflow provides a range of example flows to help you get started.
|
||||||
|
|
||||||
|
To quickly try one of them, open a starter example, set up your API keys and click ⚡ Run, on the bottom right corner of the canvas. This will open up Langflow's Interaction Panel with the chat console, text inputs, and outputs.
|
||||||
77
docs/docs/getting-started/install.mdx
Normal file
77
docs/docs/getting-started/install.mdx
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
import ThemedImage from "@theme/ThemedImage";
|
||||||
|
import useBaseUrl from "@docusaurus/useBaseUrl";
|
||||||
|
import ZoomableImage from "/src/theme/ZoomableImage.js";
|
||||||
|
import Admonition from "@theme/Admonition";
|
||||||
|
|
||||||
|
# 📦 Install Langflow
|
||||||
|
|
||||||
|
<Admonition type="info">
|
||||||
|
Langflow v1.0 is also available in a [HuggingFace Preview Space](https://huggingface.co/spaces/Langflow/Langflow-Preview?duplicate=true) if you'd rather try it out before installing locally.
|
||||||
|
</Admonition>
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
Langflow requires the following programs installed on your system.
|
||||||
|
|
||||||
|
* [Python 3.10](https://www.python.org/downloads/release/python-3100/)
|
||||||
|
|
||||||
|
* [pip](https://pypi.org/project/pip/) or [pipx](https://pipx.pypa.io/stable/installation/)
|
||||||
|
|
||||||
|
## Install Langflow
|
||||||
|
|
||||||
|
To install Langflow:
|
||||||
|
|
||||||
|
pip:
|
||||||
|
```bash
|
||||||
|
python -m pip install langflow -U
|
||||||
|
```
|
||||||
|
|
||||||
|
pipx:
|
||||||
|
```bash
|
||||||
|
pipx install langflow --python python3.10 --fetch-missing-python
|
||||||
|
```
|
||||||
|
Pipx can fetch the missing Python version for you with `--fetch-missing-python`, but you can also install the Python version manually.
|
||||||
|
|
||||||
|
|
||||||
|
## Install Langflow pre-release
|
||||||
|
|
||||||
|
Use `--force-reinstall` to ensure you have the latest version of Langflow and its dependencies.
|
||||||
|
|
||||||
|
To install a pre-release version of Langflow:
|
||||||
|
|
||||||
|
pip:
|
||||||
|
```bash
|
||||||
|
python -m pip install langflow --pre --force-reinstall
|
||||||
|
```
|
||||||
|
|
||||||
|
pipx:
|
||||||
|
```bash
|
||||||
|
pipx install langflow --python python3.10 --fetch-missing-python --pip-args="--pre --force-reinstall"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Having a problem?
|
||||||
|
|
||||||
|
If you encounter a problem, see [Possible Installation Issues](/migration/possible-installation-issues).
|
||||||
|
|
||||||
|
To get help in the Langflow CLI:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python -m langflow --help
|
||||||
|
```
|
||||||
|
|
||||||
|
## ⛓️ Run Langflow
|
||||||
|
|
||||||
|
1. To run Langflow, enter the following command.
|
||||||
|
```bash
|
||||||
|
python -m langflow run
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Confirm that a local Langflow instance starts by visiting `http://127.0.0.1:7860` in your browser.
|
||||||
|
```bash
|
||||||
|
│ Welcome to ⛓ Langflow │
|
||||||
|
│ │
|
||||||
|
│ Access http://127.0.0.1:7860 │
|
||||||
|
│ Collaborate, and contribute at our GitHub Repo 🚀 │
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Continue on to the [Quickstart](./quickstart.mdx).
|
||||||
10
docs/docs/getting-started/new-to-llms.mdx
Normal file
10
docs/docs/getting-started/new-to-llms.mdx
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
# 📚 New to LLMs?
|
||||||
|
|
||||||
|
Large Language Models, or LLMs, are part of an exciting new world in computing.
|
||||||
|
|
||||||
|
We made Langflow for anyone to create with LLMs, and hope you'll feel comfortable installing Langflow and [getting started](./quickstart.mdx).
|
||||||
|
|
||||||
|
If you want to learn more about LLMs, prompt engineering, and AI models, Langflow recommends [promptingguide.ai](https://promptingguide.ai), an open-source repository of prompt engineering content maintained by AI experts.
|
||||||
|
PromptingGuide offers content for [beginners](https://www.promptingguide.ai/introduction/basics) and [experts](https://www.promptingguide.ai/techniques/cot), as well as the latest [research papers](https://www.promptingguide.ai/papers) and [test results](https://www.promptingguide.ai/research) fueling AI's progress.
|
||||||
|
|
||||||
|
Wherever you are on your AI journey, it's helpful to keep Prompting Guide open in a tab.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue