Skip to content

Commit

Permalink
feat: cache few-shot prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
CNSeniorious000 committed Nov 22, 2024
1 parent 92024df commit a38d774
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reasonify-headless/reasonify/core/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def end_of_turn():

@intro.pre_process
async def _(context: dict):
context["few_shot"] = await get_examples()
if "few_shot" not in context:
context["few_shot"] = await get_examples()
context["messages"] = context.get("messages", [])
new_checkpoint(context)

Expand Down

1 comment on commit a38d774

@vercel
Copy link

@vercel vercel bot commented on a38d774 Nov 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

reasonify – ./

reasonify-git-main-promplate.vercel.app
reasonify.vercel.app
reasonify-promplate.vercel.app

Please sign in to comment.