mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-30 07:39:38 +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",
|
||||
"execution_count": 9,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
|
@ -258,11 +258,7 @@
|
|||
" documents=all_documents,\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"print(\"Documents inserted successfully!\")\n",
|
||||
"\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?"
|
||||
"print(\"Documents inserted successfully!\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -280,7 +276,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
|
@ -373,12 +369,7 @@
|
|||
"]\n",
|
||||
"\n",
|
||||
"for query in queries:\n",
|
||||
" print_query_results(query)\n",
|
||||
"\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?"
|
||||
" print_query_results(query)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue