Skip to content

Commit 8ae5357

Browse files
committed
Polish all notebooks with improved formatting and production quality content
1 parent 27b0568 commit 8ae5357

File tree

9 files changed

+2431
-875
lines changed

9 files changed

+2431
-875
lines changed

python-recipes/context-engineering/notebooks_v2/section-1-fundamentals/02_context_types_deep_dive.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,10 +1587,11 @@
15871587
"- [Context Window Management](https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them) - Understanding token limits\n",
15881588
"- [OpenAI API Reference](https://platform.openai.com/docs/api-reference) - Complete API documentation\n",
15891589
"\n",
1590-
"### **Academic Papers**\n",
1590+
"### **Academic Papers and Technical Reports**\n",
15911591
"- [In-Context Learning Survey](https://arxiv.org/abs/2301.00234) - Research on how LLMs use context\n",
15921592
"- [Retrieval-Augmented Generation](https://arxiv.org/abs/2005.11401) - Foundational RAG paper\n",
15931593
"- [Lost in the Middle](https://arxiv.org/abs/2307.03172) - How LLMs use long contexts\n",
1594+
"- [Context Rot](https://github.com/chroma-core/context-rot?tab=readme-ov-file) - How Increasing Input Tokens Impacts LLM Performance\n",
15941595
"\n",
15951596
"### **Redis Resources**\n",
15961597
"- [Redis Documentation](https://redis.io/docs/) - Official Redis documentation\n",

python-recipes/context-engineering/notebooks_v2/section-2-rag-foundations/01_rag_retrieved_context_in_practice.ipynb

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@
658658
"</pre>\n"
659659
],
660660
"text/plain": [
661-
"\u001B[1;34m🚀 Starting Course Catalog Ingestion\u001B[0m\n"
661+
"\u001b[1;34m🚀 Starting Course Catalog Ingestion\u001b[0m\n"
662662
]
663663
},
664664
"metadata": {},
@@ -671,7 +671,7 @@
671671
"</pre>\n"
672672
],
673673
"text/plain": [
674-
"\u001B[32m✅ Redis connection successful\u001B[0m\n"
674+
"\u001b[32m✅ Redis connection successful\u001b[0m\n"
675675
]
676676
},
677677
"metadata": {},
@@ -684,7 +684,7 @@
684684
"</pre>\n"
685685
],
686686
"text/plain": [
687-
"\u001B[33m🧹 Clearing existing data\u001B[0m\u001B[33m...\u001B[0m\n"
687+
"\u001b[33m🧹 Clearing existing data\u001b[0m\u001b[33m...\u001b[0m\n"
688688
]
689689
},
690690
"metadata": {},
@@ -697,7 +697,7 @@
697697
"</pre>\n"
698698
],
699699
"text/plain": [
700-
"\u001B[32m✅ Data cleared successfully\u001B[0m\n"
700+
"\u001b[32m✅ Data cleared successfully\u001b[0m\n"
701701
]
702702
},
703703
"metadata": {},
@@ -710,7 +710,7 @@
710710
"</pre>\n"
711711
],
712712
"text/plain": [
713-
"\u001B[32m✅ Loaded catalog from course_catalog_section2.json\u001B[0m\n"
713+
"\u001b[32m✅ Loaded catalog from course_catalog_section2.json\u001b[0m\n"
714714
]
715715
},
716716
"metadata": {},
@@ -723,7 +723,7 @@
723723
"</pre>\n"
724724
],
725725
"text/plain": [
726-
" Majors: \u001B[1;36m5\u001B[0m\n"
726+
" Majors: \u001b[1;36m5\u001b[0m\n"
727727
]
728728
},
729729
"metadata": {},
@@ -736,7 +736,7 @@
736736
"</pre>\n"
737737
],
738738
"text/plain": [
739-
" Courses: \u001B[1;36m50\u001B[0m\n"
739+
" Courses: \u001b[1;36m50\u001b[0m\n"
740740
]
741741
},
742742
"metadata": {},
@@ -773,7 +773,7 @@
773773
"</pre>\n"
774774
],
775775
"text/plain": [
776-
"\u001B[32m✅ Ingested \u001B[0m\u001B[1;32m5\u001B[0m\u001B[32m majors\u001B[0m\n"
776+
"\u001b[32m✅ Ingested \u001b[0m\u001b[1;32m5\u001b[0m\u001b[32m majors\u001b[0m\n"
777777
]
778778
},
779779
"metadata": {},
@@ -866,7 +866,7 @@
866866
"</pre>\n"
867867
],
868868
"text/plain": [
869-
"\u001B[32m✅ Ingested \u001B[0m\u001B[1;32m50\u001B[0m\u001B[32m courses\u001B[0m\n"
869+
"\u001b[32m✅ Ingested \u001b[0m\u001b[1;32m50\u001b[0m\u001b[32m courses\u001b[0m\n"
870870
]
871871
},
872872
"metadata": {},
@@ -879,7 +879,7 @@
879879
"</pre>\n"
880880
],
881881
"text/plain": [
882-
"\u001B[34m📊 Verification - Courses: \u001B[0m\u001B[1;34m50\u001B[0m\u001B[34m, Majors: \u001B[0m\u001B[1;34m5\u001B[0m\n"
882+
"\u001b[34m📊 Verification - Courses: \u001b[0m\u001b[1;34m50\u001b[0m\u001b[34m, Majors: \u001b[0m\u001b[1;34m5\u001b[0m\n"
883883
]
884884
},
885885
"metadata": {},
@@ -892,7 +892,7 @@
892892
"</pre>\n"
893893
],
894894
"text/plain": [
895-
"\u001B[1;32m🎉 Ingestion completed successfully!\u001B[0m\n"
895+
"\u001b[1;32m🎉 Ingestion completed successfully!\u001b[0m\n"
896896
]
897897
},
898898
"metadata": {},
@@ -2011,9 +2011,17 @@
20112011
"\n",
20122012
"### **Advanced RAG Techniques**\n",
20132013
"- [Advanced RAG Patterns](https://blog.langchain.dev/deconstructing-rag/) - LangChain blog on RAG optimization\n",
2014-
"- [Hybrid Search](https://redis.io/blog/hybrid-search-redis/) - Combining vector and keyword search\n",
2014+
"- [Advanced Search with RedisVL](https://docs.redisvl.com/en/latest/user_guide/11_advanced_queries.html) - Vector, Hybrid, Text, and Keyword Search\n",
20152015
"- [RAG Evaluation](https://arxiv.org/abs/2309.15217) - Measuring RAG system performance\n"
20162016
]
2017+
},
2018+
{
2019+
"cell_type": "code",
2020+
"execution_count": null,
2021+
"id": "38e31170-962f-4fe9-9209-a48f23a33400",
2022+
"metadata": {},
2023+
"outputs": [],
2024+
"source": []
20172025
}
20182026
],
20192027
"metadata": {

python-recipes/context-engineering/notebooks_v2/section-3-memory-architecture/01_memory_fundamentals_and_integration.ipynb

Lines changed: 2 additions & 55 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)