jkomoros / prompt-garden

A framework for gardening LLM prompts
Apache License 2.0
9 stars 0 forks source link

A pipeline to import content into memories #55

Open jkomoros opened 1 year ago

jkomoros commented 1 year ago

It could be as simple as a utility seed that does it (possibly using fetch). Ideally we'll need to figure out read/write access control to memories.

Memories are controlled by the user, but they also want ways to make sure that seeds they run don't read from (or espcially write to) memories that they don't intend them to. How to do that?

The engine could check the namespace matches the remote location of the memory (and let local ones read/write any ones they want)?

Seed_type import. When called, the harness shows "system" UI allowing the user to select which file to import (for example the CLI might use inquirer to list files in the data folder). Then the harness loads the file and returns it as a string. You could use a json extract to parse the content.

In web contexts, the UI would be to show a <input type='file'> and then load up the file and pass to the engine.

The above I think is obsolete because we can just use fetch with a local file.