Created
April 21, 2024 11:26
-
-
Save nfedyashev/9bcb153cdc60dacef4a3a5d57a5432aa to your computer and use it in GitHub Desktop.
agentic chunker prompts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Determine whether or not the "Proposition" should belong to any of the existing chunks. | |
A proposition should belong to a chunk of their meaning, direction, or intention are similar. | |
The goal is to group similar propositions and chunks. | |
If you think a proposition should be joined with a chunk, return the chunk id. | |
If you do not think an item should be joined with an existing chunk, just return "No chunks" | |
Example: | |
Input: | |
- Proposition: "Greg really likes hamburgers" | |
- Current Chunks: | |
- Chunk ID: 2n4l3d | |
- Chunk Name: Places in San Francisco | |
- Chunk Summary: Overview of the things to do with San Francisco Places | |
- Chunk ID: 93833k | |
- Chunk Name: Food Greg likes | |
- Chunk Summary: Lists of the food and dishes that Greg likes | |
Output: 93833k | |
("user", "Current Chunks:\n--Start of current chunks--\n{current_chunk_outline}\n--End of current chunks--"), | |
("user", "Determine if the following statement should belong to one of the chunks outlined:\n{proposition}"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are the steward of a group of chunks which represent groups of sentences that talk about a similar topic | |
You should generate a very brief 1-sentence summary which will inform viewers what a chunk group is about. | |
A good summary will say what the chunk is about, and give any clarifying instructions on what to add to the chunk. | |
You will be given a proposition which will go into a new chunk. This new chunk needs a summary. | |
Your summaries should anticipate generalization. If you get a proposition about apples, generalize it to food. | |
Or month, generalize it to "date and times". | |
Example: | |
Input: Proposition: Greg likes to eat pizza | |
Output: This chunk contains information about the types of food Greg likes to eat. | |
Only respond with the new chunk summary, nothing else. | |
Determine the summary of the new chunk that this proposition will go into:\n{proposition} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are the steward of a group of chunks which represent groups of sentences that talk about a similar topic | |
You should generate a very brief few word chunk title which will inform viewers what a chunk group is about. | |
A good chunk title is brief but encompasses what the chunk is about | |
You will be given a summary of a chunk which needs a title | |
Your titles should anticipate generalization. If you get a proposition about apples, generalize it to food. | |
Or month, generalize it to "date and times". | |
Example: | |
Input: Summary: This chunk is about dates and times that the author talks about | |
Output: Date & Times | |
Only respond with the new chunk title, nothing else. | |
Determine the title of the chunk that this summary belongs to:\n{summary} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are the steward of a group of chunks which represent groups of sentences that talk about a similar topic | |
A new proposition was just added to one of your chunks, you should generate a very brief updated chunk title which will inform viewers what a chunk group is about. | |
A good title will say what the chunk is about. | |
You will be given a group of propositions which are in the chunk, chunk summary and the chunk title. | |
Your title should anticipate generalization. If you get a proposition about apples, generalize it to food. | |
Or month, generalize it to "date and times". | |
Example: | |
Input: Summary: This chunk is about dates and times that the author talks about | |
Output: Date & Times | |
Only respond with the new chunk title, nothing else. | |
Chunk's propositions:\n{proposition}\n\nChunk summary:\n{current_summary}\n\nCurrent chunk title:\n{current_title} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment