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
debbb34077
commit
855091f403
1 changed files with 2 additions and 6 deletions
|
@ -138,7 +138,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 8,
|
"execution_count": null,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
{
|
{
|
||||||
|
@ -179,10 +179,7 @@
|
||||||
"# Let's verify our memory bank was created\n",
|
"# Let's verify our memory bank was created\n",
|
||||||
"memory_banks = client.memory_banks.list()\n",
|
"memory_banks = client.memory_banks.list()\n",
|
||||||
"#print(\"\\nRegistered memory banks:\")\n",
|
"#print(\"\\nRegistered memory banks:\")\n",
|
||||||
"#print(json.dumps(memory_banks, indent=2))\n",
|
"#print(json.dumps(memory_banks, indent=2))"
|
||||||
"\n",
|
|
||||||
"# 🎯 Exercise: Try creating another memory bank with different settings!\n",
|
|
||||||
"# What happens if you try to create a bank with the same identifier?"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -269,7 +266,6 @@
|
||||||
"Now for the exciting part - querying our documents! The Memory API uses semantic search to find relevant content based on meaning, not just keywords.\n",
|
"Now for the exciting part - querying our documents! The Memory API uses semantic search to find relevant content based on meaning, not just keywords.\n",
|
||||||
"❓ Understanding Scores:\n",
|
"❓ Understanding Scores:\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Scores range from 0 to 1, with 1 being the most relevant\n",
|
|
||||||
"Generally, scores above 0.7 indicate strong relevance\n",
|
"Generally, scores above 0.7 indicate strong relevance\n",
|
||||||
"Consider your use case when deciding on score thresholds"
|
"Consider your use case when deciding on score thresholds"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue