"The Power of Curating Knowledge: From Prompt Engineering to Commonplace Books"
Hatched by Kazuki Nakayashiki
Sep 30, 2023
4 min read
16 views
"The Power of Curating Knowledge: From Prompt Engineering to Commonplace Books"
Introduction:
In a world filled with vast amounts of information, finding effective ways to retain and utilize knowledge has become increasingly important. This article explores two unique methods of organizing and harnessing information: prompt engineering for Claude's long context window and the concept of keeping a commonplace book. While seemingly different, these approaches share common points and can greatly enhance our ability to retain and apply information. Let's delve deeper into these techniques and uncover actionable advice for implementing them in our lives.
Prompt Engineering for Claude's Long Context Window:
One of the challenges faced by Claude's long context window is the potential degradation of performance on the end of a document. The addition of examples in the prompt increases the distance between the relevant information and the point at which Claude needs to answer. However, incorporating many examples and utilizing a scratchpad can lead to improved performance on both long and short context lengths. Pulling relevant quotes into the scratchpad proves to be helpful in various scenarios. Although it may slightly impact latency, it significantly enhances accuracy. Notably, generic examples on general or external knowledge do not seem to contribute to performance improvement. Additionally, for Claude Instant, there appears to be a correlation between the distance of the relevant passage to the question and the end of the prompt, and the performance. Striving for a balance between prompt length and positioning of relevant content can optimize performance.
How and Why to Keep a "Commonplace Book":
A commonplace book serves as a central resource for collecting ideas, quotes, anecdotes, observations, and information encountered throughout one's life. This practice has been embraced by many influential figures throughout history. Marcus Aurelius, for instance, kept a commonplace book which eventually became the Meditations. Petrarch also maintained one. The purpose of a commonplace book is to capture teachings and sayings that can be practically applied, rather than archaic or extravagant expressions. To create a comprehensive commonplace book, it is essential to read widely and remain open to unexpected discoveries. Marking down passages, words, anecdotes, and stories that resonate with you while reading, commonly known as "marginalia," is a habit adopted by the best readers. This practice enables a conversation between the reader, the book, and the author. A commonplace book helps prioritize our learning by motivating us to retain only the information we can use. It extends beyond books and can include material from movies, speeches, videos, and conversations.
Connecting the Dots:
Despite their seemingly different contexts, prompt engineering and commonplace books share common threads. Both emphasize the importance of curating and organizing information to enhance our ability to retain and apply knowledge effectively. Whether it is optimizing performance in prompt-based systems or creating a personal repository of valuable insights, the underlying principles remain the same. Let's explore three actionable pieces of advice that can be applied in both scenarios.
Actionable Advice:
-
Read widely and take notes: To build a successful commonplace book or improve prompt engineering, it is crucial to cultivate a habit of reading widely. Explore various subjects and genres to encounter diverse perspectives and ideas. While reading, take notes on passages, anecdotes, or any information that stands out to you. These notes will serve as valuable resources for future reference and reflection.
-
Categorize and organize: Whether you are working on prompt engineering or maintaining a commonplace book, having a well-organized system is essential. Develop a categorization method that suits your needs and preferences. Ronald Reagan's notecard system is a prime example of how categorization can enhance the effectiveness of a commonplace book. Similarly, in prompt engineering, organizing prompts and examples into different groups allows for easy access and streamlined retrieval of information.
-
Prioritize quality over quantity: While it may be tempting to accumulate vast amounts of information, both prompt engineering and commonplace books emphasize the value of quality over quantity. Focus on finding and retaining valuable insights that can be practically applied. By being selective and discerning, you ensure that your resources are meaningful and impactful.
Conclusion:
Prompt engineering for Claude's long context window and the practice of keeping a commonplace book offer valuable strategies for organizing and harnessing knowledge effectively. By incorporating these approaches into our lives, we can optimize performance in prompt-based systems and create a personal repository of insights. Remember to read widely, take notes, categorize and organize, and prioritize quality over quantity. Through intentional curation and utilization of information, we can unlock the full potential of our intellectual capabilities and make the most of the knowledge available to us.
Sources
Hatch New Ideas with Glasp AI 🐣
Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)
Start Hatching 🐣