From 62e4df815aa87119c2f4a4650dc8ba48cc366697 Mon Sep 17 00:00:00 2001 From: Nuno Campos Date: Mon, 23 Oct 2023 10:39:37 +0100 Subject: [PATCH] Add todo --- Makefile | 2 +- README.md | 4 ++++ examples/draft-revise-loop.py | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d2c4171b4..622d3d623 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ test_watch: # Define a variable for Python and notebook files. PYTHON_FILES=. lint format: PYTHON_FILES=. -lint_diff format_diff: PYTHON_FILES=$(shell git diff --relative=libs/langchain --name-only --diff-filter=d master | grep -E '\.py$$|\.ipynb$$') +lint_diff format_diff: PYTHON_FILES=$(shell git diff --name-only --diff-filter=d master | grep -E '\.py$$|\.ipynb$$') lint lint_diff: poetry run ruff . diff --git a/README.md b/README.md index e74289dd7..22e31df3b 100644 --- a/README.md +++ b/README.md @@ -52,3 +52,7 @@ Check `examples` for more examples. - [ ] Fault tolerance - [ ] Retry individual processes in a step - [ ] Retry entire step? +- [ ] Pregel.stream_log to contain additional keys specific to Pregel + - [ ] tasks: inputs of each chain in each step, keyed by {name}:{step} + - [ ] task_results: same as above but outputs + - [ ] channels: channel values at end of each step, keyed by {name}:{step} diff --git a/examples/draft-revise-loop.py b/examples/draft-revise-loop.py index 0fd6a5697..ee9970ebe 100644 --- a/examples/draft-revise-loop.py +++ b/examples/draft-revise-loop.py @@ -4,7 +4,6 @@ from langchain.chat_models.openai import ChatOpenAI from langchain.output_parsers.openai_functions import JsonOutputFunctionsParser from langchain.prompts import SystemMessagePromptTemplate from langchain.schema.output_parser import StrOutputParser -from langchain.schema.runnable import RunnablePassthrough from permchain import Pregel, channels