Update README.md
This commit is contained in:
parent
d5e942f239
commit
d6dd3a1b1e
81
README.md
81
README.md
@ -11,21 +11,22 @@
|
||||
3. [Pull Required Models](#pull-required-models)
|
||||
4. [Install Flowise](#install-flowise)
|
||||
5. [Start Flowise](#start-flowise)
|
||||
6. [Build the Chatbot Flow](#build-the-chatbot-flow)
|
||||
6. [Import an Existing Flow](#import-an-existing-flow)
|
||||
7. [Build the Chatbot Flow](#build-the-chatbot-flow)
|
||||
- [Step 1: Recursive Character Text Splitter](#step-1-recursive-character-text-splitter)
|
||||
- [Step 2: Document Store (RAG)](#step-2-document-store-rag)
|
||||
- [Step 3: Ollama Embeddings](#step-3-ollama-embeddings)
|
||||
- [Step 4: Faiss Vector Store](#step-4-faiss-vector-store)
|
||||
- [Step 5: Ollama Chat Model](#step-5-ollama-chat-model)
|
||||
- [Step 6: Buffer Memory](#step-6-buffer-memory)
|
||||
7. [Upsert Documents](#upsert-documents)
|
||||
8. [Using Cloud LLM APIs (Optional)](#using-cloud-llm-apis-optional)
|
||||
9. [Deploy Chatbot to Users](#deploy-chatbot-to-users)
|
||||
8. [Upsert Documents](#upsert-documents)
|
||||
9. [Using Cloud LLM APIs (Optional)](#using-cloud-llm-apis-optional)
|
||||
10. [Deploy Chatbot to Users](#deploy-chatbot-to-users)
|
||||
- [Direct Link](#direct-link)
|
||||
- [Embed in Website](#embed-in-website)
|
||||
- [Session Management](#session-management)
|
||||
- [Rate Limiting](#rate-limiting)
|
||||
10. [Troubleshooting](#troubleshooting)
|
||||
11. [Troubleshooting](#troubleshooting)
|
||||
|
||||
---
|
||||
|
||||
@ -162,6 +163,76 @@ Or with PM2:
|
||||
pm2 start "npx flowise start --FLOWISE_USERNAME=admin --FLOWISE_PASSWORD=yourpassword" --name flowise
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Import an Existing Flow
|
||||
|
||||
If you already have a chatflow exported as a `.json` file (e.g. `Product Detection Q&A Chatflow.json`), you can import it directly into Flowise instead of building from scratch.
|
||||
|
||||
### Download the Flow File
|
||||
|
||||
Get the `.json` file from your repository:
|
||||
|
||||
```bash
|
||||
# Using wget
|
||||
wget -O "Product Detection Q&A Chatflow.json" \
|
||||
"http://145.239.66.197:3000/Hamza/Chatbot/raw/branch/main/Product%20Detection%20Q%26A%20Chatflow.json"
|
||||
|
||||
# OR using curl
|
||||
curl -L -o "Product Detection Q&A Chatflow.json" \
|
||||
"http://145.239.66.197:3000/Hamza/Chatbot/raw/branch/main/Product%20Detection%20Q%26A%20Chatflow.json"
|
||||
```
|
||||
|
||||
> **Note:** The URL uses `/raw/branch/` to get the raw file content, not the Gitea preview page.
|
||||
|
||||
### Import into Flowise
|
||||
|
||||
1. Open Flowise at `http://localhost:3000`
|
||||
2. On the **Chatflows** home page, click the **Add New** button (top right)
|
||||
3. Instead of building from scratch, click the **Load** button (upload icon, top right of the canvas)
|
||||
4. Select your `Product Detection Q&A Chatflow.json` file
|
||||
5. The full flow will appear on the canvas automatically
|
||||
Alternatively, from the **Chatflows** home page:
|
||||
1. Click the **⋮ (three dots)** menu on any existing chatflow card
|
||||
2. Select **Duplicate** — or use **Import** if available in your Flowise version
|
||||
### After Importing
|
||||
|
||||
The flow is ready but you need to **reconfigure credentials** since API keys and local paths don't transfer between machines:
|
||||
|
||||
| Node | What to Reconfigure |
|
||||
|---|---|
|
||||
| **Ollama / ChatOllama** | Set Base URL to `http://localhost:11434` |
|
||||
| **Ollama Embeddings** | Set Base URL to `http://localhost:11434` |
|
||||
| **Faiss** | Set Base Path to `/root/.flowise/vectorstore` |
|
||||
| **Document Store** | Re-upload or re-link your documents |
|
||||
| **Any API node** | Re-enter API keys (OpenAI, Anthropic, etc.) |
|
||||
|
||||
### Create the Vector Store Directory
|
||||
|
||||
```bash
|
||||
mkdir -p /root/.flowise/vectorstore
|
||||
```
|
||||
|
||||
### Upsert After Import
|
||||
|
||||
After reconfiguring, always run Upsert before chatting:
|
||||
|
||||
1. Click the **Upsert** button (top right of canvas)
|
||||
2. Wait for success confirmation
|
||||
3. Verify the index was created:
|
||||
```bash
|
||||
ls /root/.flowise/vectorstore/
|
||||
# Expected: faiss.index faiss.json
|
||||
```
|
||||
|
||||
### Export Your Flow (for sharing or backup)
|
||||
|
||||
To export your current flow as a `.json` file:
|
||||
|
||||
1. Open the chatflow in Flowise
|
||||
2. Click the **⋮ (three dots)** menu → **Export**
|
||||
3. Save the `.json` file — commit it to your repository for teammates to import
|
||||
|
||||
---
|
||||
|
||||
## Build the Chatbot Flow
|
||||
|
||||
Loading…
Reference in New Issue
Block a user