Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds flow abstraction to forward call #81

Merged
merged 6 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion prompting/validators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from . import event
from . import dataset

__version__ = "2.1.4"
__version__ = "2.1.5"
version_split = __version__.split(".")
__spec_version__ = (
(1000 * int(version_split[0]))
Expand Down
7 changes: 6 additions & 1 deletion prompting/validators/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async def run_step(self, task: Task, k: int, timeout: float, exclude: list = [])
return event


async def forward(self):
async def questions_and_answers_around_summary_flow(self):
# Obtain a unique context from the dataset.
data = next(self.dataset)["text"]

Expand Down Expand Up @@ -272,3 +272,8 @@ async def forward(self):
)

exclude += qa_event["uids"]


async def forward(self):
# Definition of flow to be executed at forward step
await questions_and_answers_around_summary_flow(self)