mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-30 23:51:00 +00:00
Update 04_Memory101.ipynb
This commit is contained in:
parent
c5663fea72
commit
debbb34077
1 changed files with 4 additions and 13 deletions
|
@ -204,7 +204,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 9,
|
"execution_count": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
|
@ -258,11 +258,7 @@
|
||||||
" documents=all_documents,\n",
|
" documents=all_documents,\n",
|
||||||
")\n",
|
")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(\"Documents inserted successfully!\")\n",
|
"print(\"Documents inserted successfully!\")"
|
||||||
"\n",
|
|
||||||
"# 🎯 Exercise: Try adding your own documents!\n",
|
|
||||||
"# - What happens if you try to insert a document with an existing ID?\n",
|
|
||||||
"# - What other metadata might be useful to add?"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -280,7 +276,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 10,
|
"execution_count": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
|
@ -373,12 +369,7 @@
|
||||||
"]\n",
|
"]\n",
|
||||||
"\n",
|
"\n",
|
||||||
"for query in queries:\n",
|
"for query in queries:\n",
|
||||||
" print_query_results(query)\n",
|
" print_query_results(query)"
|
||||||
"\n",
|
|
||||||
"# 🎯 Exercises:\n",
|
|
||||||
"# 1. Try writing your own queries! What works well? What doesn't?\n",
|
|
||||||
"# 2. How do different phrasings of the same question affect results?\n",
|
|
||||||
"# 3. What happens if you query for content that isn't in your documents?"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue