fix: added instructions for import/export
This commit is contained in:
parent
a70eaaecfd
commit
29a1af74e5
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
|
@ -34,6 +34,18 @@ Creating flows with LangFlow is easy. Simply drag sidebar components onto the ca
|
||||||
|
|
||||||
Explore by editing prompt parameters, link chains and agents, track an agent's thought process, and export your flow.
|
Explore by editing prompt parameters, link chains and agents, track an agent's thought process, and export your flow.
|
||||||
|
|
||||||
|
Once you're done, you can export your flow as a JSON file to use with LangChain.
|
||||||
|
To do so, click the "Export" button in the top right corner of the canvas, then
|
||||||
|
in Python, you can load the flow with:
|
||||||
|
|
||||||
|
```python
|
||||||
|
from langflow import load_flow_from_json
|
||||||
|
|
||||||
|
flow = load_flow_from_json("path/to/flow.json")
|
||||||
|
# Now you can use it like any chain
|
||||||
|
flow("Hey, have you heard of LangFlow?")
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## 👋 Contributing
|
## 👋 Contributing
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue