refac: change folder structure
This commit is contained in:
parent
dc6b69d065
commit
6749a42e87
8 changed files with 2180 additions and 3508 deletions
8
Makefile
8
Makefile
|
|
@ -30,8 +30,12 @@ build:
|
||||||
make install_frontend
|
make install_frontend
|
||||||
make build_frontend
|
make build_frontend
|
||||||
cp -r langflow/frontend/build langflow/backend/langflow_backend/frontend
|
cp -r langflow/frontend/build langflow/backend/langflow_backend/frontend
|
||||||
cd langflow/backend && poetry build --format sdist
|
poetry build --format sdist
|
||||||
rm -rf dist && mv langflow/backend/dist/ dist
|
rm -rf langflow/backend/langflow_backend/frontend
|
||||||
|
|
||||||
|
publish:
|
||||||
|
make build
|
||||||
|
poetry publish
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo '----'
|
@echo '----'
|
||||||
|
|
|
||||||
10
README.md
10
README.md
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
~ A User Interface For [LangChain](https://github.com/hwchase17/langchain) ~
|
~ A User Interface For [LangChain](https://github.com/hwchase17/langchain) ~
|
||||||
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/logspace-ai/langflow" />
|
<img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/logspace-ai/langflow" />
|
||||||
<img alt="GitHub Last Commit" src="https://img.shields.io/github/last-commit/logspace-ai/langflow" />
|
<img alt="GitHub Last Commit" src="https://img.shields.io/github/last-commit/logspace-ai/langflow" />
|
||||||
|
|
@ -18,7 +17,7 @@
|
||||||
<img alt="Github License" src="https://img.shields.io/github/license/logspace-ai/langflow" />
|
<img alt="Github License" src="https://img.shields.io/github/license/logspace-ai/langflow" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
LangFlow is a GUI for [LangChain](https://github.com/hwchase17/langchain), designed with [react-flow](https://github.com/wbkd/react-flow) to provide an effortless way to experiment and prototype flows with drag-and-drop components and a chat box.
|
LangFlow is a GUI for [LangChain](https://github.com/hwchase17/langchain), designed with [react-flow](https://github.com/wbkd/react-flow) to provide an effortless way to experiment and prototype flows with drag-and-drop components and a chat box.
|
||||||
|
|
||||||
|
|
@ -32,18 +31,15 @@ Next, run:
|
||||||
|
|
||||||
`langflow` or `python -m langflow`
|
`langflow` or `python -m langflow`
|
||||||
|
|
||||||
|
|
||||||
## 🎨 Creating Flows
|
## 🎨 Creating Flows
|
||||||
|
|
||||||
Creating flows with LangFlow is easy. Simply drag sidebar components onto the canvas and connect them together to create your pipeline. LangFlow provides a range of [LangChain components](https://langchain.readthedocs.io/en/latest/reference.html) to choose from, including LLMs, prompt serializers, agents, and chains.
|
Creating flows with LangFlow is easy. Simply drag sidebar components onto the canvas and connect them together to create your pipeline. LangFlow provides a range of [LangChain components](https://langchain.readthedocs.io/en/latest/reference.html) to choose from, including LLMs, prompt serializers, agents, and chains.
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
|
|
||||||
## 🔧 Contributing
|
## 🔧 Contributing
|
||||||
|
|
||||||
We welcome contributions from developers of all levels to our open-source project on GitHub. If you'd like to contribute, please check our contributing guidelines and help make LangFlow more accessible.
|
We welcome contributions from developers of all levels to our open-source project on GitHub. If you'd like to contribute, please check our contributing guidelines and help make LangFlow more accessible.
|
||||||
|
|
||||||
|
|
||||||
## 📄 License
|
## 📄 License
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ def serve(
|
||||||
timeout = 60
|
timeout = 60
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
"bind": "0.0.0.0:5003",
|
"bind": "127.0.0.1:5003",
|
||||||
"workers": workers,
|
"workers": workers,
|
||||||
"worker_class": "uvicorn.workers.UvicornWorker",
|
"worker_class": "uvicorn.workers.UvicornWorker",
|
||||||
"timeout": timeout,
|
"timeout": timeout,
|
||||||
|
|
|
||||||
|
|
@ -33,4 +33,4 @@ app = create_app()
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import uvicorn
|
import uvicorn
|
||||||
|
|
||||||
uvicorn.run(app, host="0.0.0.0", port=5003)
|
uvicorn.run(app, host="127.0.0.1", port=5003)
|
||||||
|
|
|
||||||
2413
langflow/backend/poetry.lock
generated
2413
langflow/backend/poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,34 +0,0 @@
|
||||||
[tool.poetry]
|
|
||||||
name = "langflow-backend"
|
|
||||||
version = "0.0.22"
|
|
||||||
description = "Backend for Langflow"
|
|
||||||
authors = ["Ibis Prevedello <ibiscp@gmail.com>", "Gabriel Almeida <gabrielf.almeida90@gmail.com>"]
|
|
||||||
packages = [
|
|
||||||
{ include = "langflow_backend" },
|
|
||||||
]
|
|
||||||
include = ["frontend/build/*", "frontend/build/**/*"]
|
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
|
||||||
langflow = "langflow_backend.__main__:main"
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
|
||||||
python = "^3.9"
|
|
||||||
openai = "^0.26.5"
|
|
||||||
fastapi = "^0.91.0"
|
|
||||||
uvicorn = "^0.20.0"
|
|
||||||
beautifulsoup4 = "^4.11.2"
|
|
||||||
google-search-results = "^2.4.1"
|
|
||||||
google-api-python-client = "^2.79.0"
|
|
||||||
langchain = {git = "https://github.com/ibiscp/langchain.git", rev = "ibis"}
|
|
||||||
typer = "^0.7.0"
|
|
||||||
gunicorn = "^20.1.0"
|
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
|
||||||
black = "^23.1.0"
|
|
||||||
ipykernel = "^6.21.2"
|
|
||||||
mypy = "^1.1.1"
|
|
||||||
ruff = "^0.0.254"
|
|
||||||
|
|
||||||
[build-system]
|
|
||||||
requires = ["poetry-core"]
|
|
||||||
build-backend = "poetry.core.masonry.api"
|
|
||||||
3173
poetry.lock
generated
3173
poetry.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,31 +1,39 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "langflow"
|
name = "langflow"
|
||||||
version = "0.0.1"
|
version = "0.0.26"
|
||||||
description = "A Python package with a built-in web application"
|
description = "A Python package with a built-in web application"
|
||||||
authors = ["Ibis Prevedello <ibiscp@gmail.com>", "Gabriel Almeida <gabrielf.almeida90@gmail.com>","Otávio Anovazzi <otavio2204@gmail.com>"]
|
authors = ["Ibis Prevedello <ibiscp@gmail.com>",
|
||||||
|
"Gabriel Almeida <gabrielf.almeida90@gmail.com>",
|
||||||
|
"Otávio Anovazzi <otavio2204@gmail.com>",
|
||||||
|
"Lucas Eduoli <lucaseduoli@gmail.com"]
|
||||||
packages = [
|
packages = [
|
||||||
{ include = "langflow"},
|
{ include = "langflow_backend", from = "langflow/backend" },
|
||||||
]
|
]
|
||||||
include = ["langflow/frontend/build/*", "langflow/frontend/build/**/*"]
|
include = ["langflow/backend/langflow_backend/*", "langflow/backend/langflow_backend/**/*"]
|
||||||
exclude = ["langflow/frontend/node_modules/*", "langflow/frontend/src/*"]
|
license = "MIT"
|
||||||
|
readme = "README.md"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
langflow = "langflow.__main__:main"
|
langflow = "langflow_backend.__main__:main"
|
||||||
|
|
||||||
|
|
||||||
[tool.poetry.group.dev.dependencies]
|
|
||||||
ruff = "^0.0.254"
|
|
||||||
black = "^23.1.0"
|
|
||||||
mypy = "^1.1.1"
|
|
||||||
pytest = "^7.2.2"
|
|
||||||
pytest-cov = "^4.0.0"
|
|
||||||
|
|
||||||
[build-system]
|
|
||||||
requires = ["poetry-core>=1.0.0"]
|
|
||||||
build-backend = "poetry.core.masonry.api"
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.9"
|
python = "^3.9"
|
||||||
|
openai = "^0.26.5"
|
||||||
|
fastapi = "^0.91.0"
|
||||||
|
uvicorn = "^0.20.0"
|
||||||
|
beautifulsoup4 = "^4.11.2"
|
||||||
|
google-search-results = "^2.4.1"
|
||||||
|
google-api-python-client = "^2.79.0"
|
||||||
|
langchain_ibis = "0.0.100"
|
||||||
typer = "^0.7.0"
|
typer = "^0.7.0"
|
||||||
gunicorn = "^20.1.0"
|
gunicorn = "^20.1.0"
|
||||||
langflow_backend = {path = "langflow/backend"}
|
|
||||||
|
[tool.poetry.group.dev.dependencies]
|
||||||
|
black = "^23.1.0"
|
||||||
|
ipykernel = "^6.21.2"
|
||||||
|
mypy = "^1.1.1"
|
||||||
|
ruff = "^0.0.254"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["poetry-core"]
|
||||||
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue