mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 04:04:14 +00:00
tested
This commit is contained in:
parent
ad9b12a950
commit
7fc14dd97e
1 changed files with 1339 additions and 1351 deletions
|
@ -21,8 +21,8 @@
|
|||
"\n",
|
||||
"1. How to set up and start the LlamaStack server using the Together AI provider.\n",
|
||||
"2. How to create and manage vector databases within LlamaStack.\n",
|
||||
"3. How to build RAG chains with CrewAI by utilizing the LlamaStack server.\n",
|
||||
"4. How to query the RAG chain for effective information retrieval and generation.\n",
|
||||
"3. How to build RAG tool with CrewAI by utilizing the LlamaStack server.\n",
|
||||
"4. How to query the RAG tool for effective information retrieval and generation.\n",
|
||||
"\n",
|
||||
"### Prerequisites\n",
|
||||
"\n",
|
||||
|
@ -38,7 +38,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 1,
|
||||
"id": "5b6a6a17-b931-4bea-8273-0d6e5563637a",
|
||||
"metadata": {
|
||||
"colab": {
|
||||
|
@ -64,13 +64,6 @@
|
|||
"text": [
|
||||
"TOGETHER_API_KEY environment variable is not set. Please enter your API key: ········\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"TOGETHER_API_KEY environment variable is not set. Please enter your API key: ········\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
|
@ -116,7 +109,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 2,
|
||||
"id": "dd2dacf3-ec8b-4cc7-8ff4-b5b6ea4a6e9e",
|
||||
"metadata": {
|
||||
"colab": {
|
||||
|
@ -135,32 +128,32 @@
|
|||
"Environment '/Users/kaiwu/work/kaiwu/llama-stack/.venv' already exists, re-using it.\n",
|
||||
"Virtual environment /Users/kaiwu/work/kaiwu/llama-stack/.venv is already active\n",
|
||||
"\u001b[2mUsing Python 3.12.9 environment at: /Users/kaiwu/work/kaiwu/llama-stack/.venv\u001b[0m\n",
|
||||
"\u001b[2mAudited \u001b[1m1 package\u001b[0m \u001b[2min 211ms\u001b[0m\u001b[0m\n",
|
||||
"\u001b[2mAudited \u001b[1m1 package\u001b[0m \u001b[2min 206ms\u001b[0m\u001b[0m\n",
|
||||
"Installing pip dependencies\n",
|
||||
"\u001b[2mUsing Python 3.12.9 environment at: /Users/kaiwu/work/kaiwu/llama-stack/.venv\u001b[0m\n",
|
||||
"\u001b[2K\u001b[2mResolved \u001b[1m185 packages\u001b[0m \u001b[2min 1.84s\u001b[0m\u001b[0m \u001b[0m\n",
|
||||
"\u001b[2mUninstalled \u001b[1m3 packages\u001b[0m \u001b[2min 133ms\u001b[0m\u001b[0m\n",
|
||||
"\u001b[2K\u001b[2mInstalled \u001b[1m3 packages\u001b[0m \u001b[2min 59ms\u001b[0m\u001b[0m \u001b[0m\n",
|
||||
"\u001b[2K\u001b[2mResolved \u001b[1m185 packages\u001b[0m \u001b[2min 2.02s\u001b[0m\u001b[0m \u001b[0m\n",
|
||||
"\u001b[2mUninstalled \u001b[1m3 packages\u001b[0m \u001b[2min 247ms\u001b[0m\u001b[0m\n",
|
||||
"\u001b[2K\u001b[2mInstalled \u001b[1m3 packages\u001b[0m \u001b[2min 97ms\u001b[0m\u001b[0m \u001b[0m\n",
|
||||
" \u001b[31m-\u001b[39m \u001b[1mprotobuf\u001b[0m\u001b[2m==5.29.5\u001b[0m\n",
|
||||
" \u001b[32m+\u001b[39m \u001b[1mprotobuf\u001b[0m\u001b[2m==5.29.4\u001b[0m\n",
|
||||
" \u001b[31m-\u001b[39m \u001b[1mruamel-yaml\u001b[0m\u001b[2m==0.18.14\u001b[0m\n",
|
||||
" \u001b[32m+\u001b[39m \u001b[1mruamel-yaml\u001b[0m\u001b[2m==0.17.40\u001b[0m\n",
|
||||
" \u001b[31m-\u001b[39m \u001b[1mruff\u001b[0m\u001b[2m==0.12.5\u001b[0m\n",
|
||||
" \u001b[32m+\u001b[39m \u001b[1mruff\u001b[0m\u001b[2m==0.9.10\u001b[0m\n",
|
||||
"Installing special provider module: torch torchvision torchao>=0.12.0 --extra-index-url https://download.pytorch.org/whl/cpu\n",
|
||||
"\u001b[2mUsing Python 3.12.9 environment at: /Users/kaiwu/work/kaiwu/llama-stack/.venv\u001b[0m\n",
|
||||
"\u001b[2mAudited \u001b[1m3 packages\u001b[0m \u001b[2min 67ms\u001b[0m\u001b[0m\n",
|
||||
"Installing special provider module: sentence-transformers --no-deps\n",
|
||||
"\u001b[2mUsing Python 3.12.9 environment at: /Users/kaiwu/work/kaiwu/llama-stack/.venv\u001b[0m\n",
|
||||
"\u001b[2mAudited \u001b[1m1 package\u001b[0m \u001b[2min 26ms\u001b[0m\u001b[0m\n",
|
||||
"Installing special provider module: torch torchtune>=0.5.0 torchao>=0.12.0 --extra-index-url https://download.pytorch.org/whl/cpu\n",
|
||||
"\u001b[2mUsing Python 3.12.9 environment at: /Users/kaiwu/work/kaiwu/llama-stack/.venv\u001b[0m\n",
|
||||
"\u001b[2mAudited \u001b[1m3 packages\u001b[0m \u001b[2min 108ms\u001b[0m\u001b[0m\n",
|
||||
"\u001b[2mAudited \u001b[1m3 packages\u001b[0m \u001b[2min 169ms\u001b[0m\u001b[0m\n",
|
||||
"Installing special provider module: sentence-transformers --no-deps\n",
|
||||
"\u001b[2mUsing Python 3.12.9 environment at: /Users/kaiwu/work/kaiwu/llama-stack/.venv\u001b[0m\n",
|
||||
"\u001b[2mAudited \u001b[1m1 package\u001b[0m \u001b[2min 43ms\u001b[0m\u001b[0m\n",
|
||||
"Installing special provider module: torch torchvision torchao>=0.12.0 --extra-index-url https://download.pytorch.org/whl/cpu\n",
|
||||
"\u001b[2mUsing Python 3.12.9 environment at: /Users/kaiwu/work/kaiwu/llama-stack/.venv\u001b[0m\n",
|
||||
"\u001b[2mAudited \u001b[1m3 packages\u001b[0m \u001b[2min 29ms\u001b[0m\u001b[0m\n",
|
||||
"\u001b[32mBuild Successful!\u001b[0m\n",
|
||||
"\u001b[34mYou can find the newly-built distribution here: /Users/kaiwu/.llama/distributions/starter/starter-run.yaml\u001b[0m\n",
|
||||
"\u001b[32mYou can run the new Llama Stack distro via: \u001b[34mllama stack run /Users/kaiwu/.llama/distributions/starter/starter-run.yaml --image-type venv\u001b[0m\u001b[0m\n",
|
||||
"Starting Llama Stack server with PID: 79164\n",
|
||||
"Waiting for server to start..............\n",
|
||||
"Starting Llama Stack server with PID: 97967\n",
|
||||
"Waiting for server to start.................\n",
|
||||
"Server is ready!\n"
|
||||
]
|
||||
}
|
||||
|
@ -238,7 +231,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 3,
|
||||
"id": "ab4eff97-4565-4c73-b1b3-0020a4c7e2a5",
|
||||
"metadata": {
|
||||
"id": "ab4eff97-4565-4c73-b1b3-0020a4c7e2a5"
|
||||
|
@ -267,7 +260,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 4,
|
||||
"id": "880443ef-ac3c-48b1-a80a-7dab5b25ac61",
|
||||
"metadata": {
|
||||
"id": "880443ef-ac3c-48b1-a80a-7dab5b25ac61",
|
||||
|
@ -288,11 +281,6 @@
|
|||
"output_type": "stream",
|
||||
"text": [
|
||||
"Available models:\n",
|
||||
"- all-minilm\n",
|
||||
"- ollama/all-minilm:l6-v2\n",
|
||||
"- ollama/codellama:7b-code\n",
|
||||
"- ollama/llama3.2:1b-instruct-fp16\n",
|
||||
"- ollama/nomic-embed-text\n",
|
||||
"- fireworks/accounts/fireworks/models/llama-v3p1-8b-instruct\n",
|
||||
"- fireworks/accounts/fireworks/models/llama-v3p1-70b-instruct\n",
|
||||
"- fireworks/accounts/fireworks/models/llama-v3p1-405b-instruct\n",
|
||||
|
@ -401,7 +389,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 5,
|
||||
"id": "0f241d81-19a7-451f-ac4e-2869a29300d1",
|
||||
"metadata": {
|
||||
"id": "0f241d81-19a7-451f-ac4e-2869a29300d1",
|
||||
|
@ -455,7 +443,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 6,
|
||||
"id": "5a0a6619-c9fb-4938-8ff3-f84304eed91e",
|
||||
"metadata": {
|
||||
"id": "5a0a6619-c9fb-4938-8ff3-f84304eed91e"
|
||||
|
@ -499,7 +487,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 7,
|
||||
"id": "0e8740d8-b809-44b9-915f-1e0200e3c3f1",
|
||||
"metadata": {
|
||||
"id": "0e8740d8-b809-44b9-915f-1e0200e3c3f1",
|
||||
|
@ -542,7 +530,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 8,
|
||||
"id": "4a5e010c-eeeb-4020-a957-74d6d1cba342",
|
||||
"metadata": {
|
||||
"id": "4a5e010c-eeeb-4020-a957-74d6d1cba342",
|
||||
|
@ -562,10 +550,10 @@
|
|||
"text": [
|
||||
"metadata : {'document_id': 'Shipping Policy'}\n",
|
||||
"content : Acme ships globally in 3-5 business days.\n",
|
||||
"metadata : {'document_id': 'Shipping Policy'}\n",
|
||||
"content : Acme ships globally in 3-5 business days.\n",
|
||||
"metadata : {'document_id': 'Shipping Policy'}\n",
|
||||
"content : Acme ships globally in 3-5 business days.\n"
|
||||
"metadata : {'document_id': 'Returns Policy'}\n",
|
||||
"content : Returns are accepted within 30 days of purchase.\n",
|
||||
"metadata : {'document_id': 'Support'}\n",
|
||||
"content : Support is available 24/7 via chat and email.\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -601,7 +589,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 9,
|
||||
"id": "c378bd10-09c2-417c-bdfc-1e0a2dd19084",
|
||||
"metadata": {
|
||||
"id": "c378bd10-09c2-417c-bdfc-1e0a2dd19084",
|
||||
|
@ -643,7 +631,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 10,
|
||||
"id": "f88ffb5a-657b-4916-9375-c6ddc156c25e",
|
||||
"metadata": {
|
||||
"id": "f88ffb5a-657b-4916-9375-c6ddc156c25e",
|
||||
|
@ -654,19 +642,19 @@
|
|||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"\u001b[92m11:25:55 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"\u001b[92m10:30:35 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:LiteLLM:\n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:httpx:HTTP Request: POST http://localhost:8321/v1/openai/v1/chat/completions \"HTTP/1.1 200 OK\"\n",
|
||||
"\u001b[92m11:25:59 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"\u001b[92m10:30:41 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"INFO:LiteLLM:Wrapper: Completed Call, calling success_handler\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'With gentle eyes and a soft, fuzzy face, the llama roams the Andes with a peaceful, gentle pace. Its long neck bends as it grazes with ease, a symbol of serenity in the mountain breeze.'"
|
||||
"\"In the Andes' gentle breeze, a llama's soft eyes gaze with peaceful ease, its fur a warm and fuzzy tease. With steps both gentle and serene, the llama roams, a symbol of calm, its beauty truly unseen.\""
|
||||
]
|
||||
},
|
||||
"execution_count": 10,
|
||||
|
@ -700,7 +688,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 11,
|
||||
"id": "08de540f-ed47-405a-a9c5-16505f4c88c8",
|
||||
"metadata": {
|
||||
"id": "08de540f-ed47-405a-a9c5-16505f4c88c8"
|
||||
|
@ -776,7 +764,7 @@
|
|||
"id": "0xh0jg6a0l4a"
|
||||
},
|
||||
"source": [
|
||||
"### 6. Building the RAG Chain\n",
|
||||
"### 6. Building the RAG tool\n",
|
||||
"\n",
|
||||
"#### Create a Complete RAG Pipeline\n",
|
||||
"\n",
|
||||
|
@ -792,7 +780,7 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 12,
|
||||
"id": "9684427d-dcc7-4544-9af5-8b110d014c42",
|
||||
"metadata": {
|
||||
"id": "9684427d-dcc7-4544-9af5-8b110d014c42"
|
||||
|
@ -832,16 +820,16 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 13,
|
||||
"id": "03322188-9509-446a-a4a8-ce3bb83ec87c",
|
||||
"metadata": {
|
||||
"id": "03322188-9509-446a-a4a8-ce3bb83ec87c",
|
||||
"outputId": "ddc3a70d-c0f3-484f-8469-9362e44d8831",
|
||||
"colab": {
|
||||
"referenced_widgets": [
|
||||
"39eb50b3c96244cf9c82043c0a359d8a"
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "03322188-9509-446a-a4a8-ce3bb83ec87c",
|
||||
"outputId": "ddc3a70d-c0f3-484f-8469-9362e44d8831"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
|
@ -851,7 +839,7 @@
|
|||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">Crew Execution Started</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008080; text-decoration-color: #008080\">crew</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">ID: </span><span style=\"color: #008080; text-decoration-color: #008080\">ce5f621f-c26b-4ac4-becc-e7043afe1264</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">ID: </span><span style=\"color: #008080; text-decoration-color: #008080\">146be674-7521-4db6-bb70-287b22aa21aa</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Tool Args: </span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
|
@ -863,7 +851,7 @@
|
|||
"\u001b[36m│\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[1;36mCrew Execution Started\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[37mName: \u001b[0m\u001b[36mcrew\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[37mID: \u001b[0m\u001b[36mce5f621f-c26b-4ac4-becc-e7043afe1264\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[37mID: \u001b[0m\u001b[36m146be674-7521-4db6-bb70-287b22aa21aa\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[37mTool Args: \u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
|
@ -889,7 +877,7 @@
|
|||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "39eb50b3c96244cf9c82043c0a359d8a",
|
||||
"model_id": "0fd1807480b443948be37ef922f4ad0f",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
|
@ -904,23 +892,23 @@
|
|||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"\u001b[92m11:27:26 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"\u001b[92m10:31:29 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:LiteLLM:\n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:httpx:HTTP Request: POST http://localhost:8321/v1/openai/v1/chat/completions \"HTTP/1.1 200 OK\"\n",
|
||||
"\u001b[92m11:27:29 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"\u001b[92m10:31:30 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"INFO:LiteLLM:Wrapper: Completed Call, calling success_handler\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">{'query': 'How long does shipping take?', 'vector_db_id': 'acme_docs', 'top_k': 1, 'score_threshold': 0.5}\n",
|
||||
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">{'query': 'How long does shipping take?', 'vector_db_id': 'acme_docs', 'top_k': 5, 'score_threshold': 0.5}\n",
|
||||
"</pre>\n"
|
||||
],
|
||||
"text/plain": [
|
||||
"{'query': 'How long does shipping take?', 'vector_db_id': 'acme_docs', 'top_k': 1, 'score_threshold': 0.5}\n"
|
||||
"{'query': 'How long does shipping take?', 'vector_db_id': 'acme_docs', 'top_k': 5, 'score_threshold': 0.5}\n"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
|
@ -931,12 +919,12 @@
|
|||
"output_type": "stream",
|
||||
"text": [
|
||||
"INFO:httpx:HTTP Request: POST http://0.0.0.0:8321/v1/vector-io/query \"HTTP/1.1 200 OK\"\n",
|
||||
"\u001b[92m11:27:29 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"\u001b[92m10:31:31 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:LiteLLM:\n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:httpx:HTTP Request: POST http://localhost:8321/v1/openai/v1/chat/completions \"HTTP/1.1 200 OK\"\n",
|
||||
"\u001b[92m11:27:31 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"\u001b[92m10:31:33 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"INFO:LiteLLM:Wrapper: Completed Call, calling success_handler\n"
|
||||
]
|
||||
},
|
||||
|
@ -956,7 +944,7 @@
|
|||
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000\">╭──────────────────────────────────────────────── Task Completion ────────────────────────────────────────────────╮</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">Task Completed</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008000; text-decoration-color: #008000\">db7eab69-7488-4a66-a681-727ba841d6be</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008000; text-decoration-color: #008000\">b1362fb4-fe9b-479d-a01d-18bf38406780</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #008000; text-decoration-color: #008000\">RAG assistant</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Tool Args: </span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
|
@ -968,7 +956,7 @@
|
|||
"\u001b[32m╭─\u001b[0m\u001b[32m───────────────────────────────────────────────\u001b[0m\u001b[32m Task Completion \u001b[0m\u001b[32m───────────────────────────────────────────────\u001b[0m\u001b[32m─╮\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[1;32mTask Completed\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mName: \u001b[0m\u001b[32mdb7eab69-7488-4a66-a681-727ba841d6be\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mName: \u001b[0m\u001b[32mb1362fb4-fe9b-479d-a01d-18bf38406780\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mAgent: \u001b[0m\u001b[32mRAG assistant\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mTool Args: \u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
|
@ -999,9 +987,10 @@
|
|||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">Crew Execution Completed</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008000; text-decoration-color: #008000\">crew</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">ID: </span><span style=\"color: #008000; text-decoration-color: #008000\">ce5f621f-c26b-4ac4-becc-e7043afe1264</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">ID: </span><span style=\"color: #008000; text-decoration-color: #008000\">146be674-7521-4db6-bb70-287b22aa21aa</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Tool Args: </span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Final Output: Acme ships globally in 3-5 business days.</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Final Output: Acme ships globally in 3-5 business days. Returns are accepted within 30 days of purchase. </span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Support is available 24/7 via chat and email.</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</span>\n",
|
||||
|
@ -1012,9 +1001,10 @@
|
|||
"\u001b[32m│\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[1;32mCrew Execution Completed\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mName: \u001b[0m\u001b[32mcrew\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mID: \u001b[0m\u001b[32mce5f621f-c26b-4ac4-becc-e7043afe1264\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mID: \u001b[0m\u001b[32m146be674-7521-4db6-bb70-287b22aa21aa\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mTool Args: \u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mFinal Output: Acme ships globally in 3-5 business days.\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mFinal Output: Acme ships globally in 3-5 business days. Returns are accepted within 30 days of purchase. \u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mSupport is available 24/7 via chat and email.\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\u001b[0m\n"
|
||||
|
@ -1041,7 +1031,7 @@
|
|||
"output_type": "stream",
|
||||
"text": [
|
||||
"❓ How long does shipping take?\n",
|
||||
"💡 Acme ships globally in 3-5 business days.\n"
|
||||
"💡 Acme ships globally in 3-5 business days. Returns are accepted within 30 days of purchase. Support is available 24/7 via chat and email.\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
@ -1064,16 +1054,16 @@
|
|||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 14,
|
||||
"id": "61995550-bb0b-46a8-a5d0-023207475d60",
|
||||
"metadata": {
|
||||
"id": "61995550-bb0b-46a8-a5d0-023207475d60",
|
||||
"outputId": "a039ab06-a541-48f9-a66d-6cef17911814",
|
||||
"colab": {
|
||||
"referenced_widgets": [
|
||||
"1d575307e41d46f7943746d4380d08bb"
|
||||
]
|
||||
}
|
||||
},
|
||||
"id": "61995550-bb0b-46a8-a5d0-023207475d60",
|
||||
"outputId": "a039ab06-a541-48f9-a66d-6cef17911814"
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
|
@ -1083,7 +1073,7 @@
|
|||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080; font-weight: bold\">Crew Execution Started</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008080; text-decoration-color: #008080\">crew</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">ID: </span><span style=\"color: #008080; text-decoration-color: #008080\">ce5f621f-c26b-4ac4-becc-e7043afe1264</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">ID: </span><span style=\"color: #008080; text-decoration-color: #008080\">146be674-7521-4db6-bb70-287b22aa21aa</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Tool Args: </span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
"<span style=\"color: #008080; text-decoration-color: #008080\">│</span> <span style=\"color: #008080; text-decoration-color: #008080\">│</span>\n",
|
||||
|
@ -1095,7 +1085,7 @@
|
|||
"\u001b[36m│\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[1;36mCrew Execution Started\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[37mName: \u001b[0m\u001b[36mcrew\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[37mID: \u001b[0m\u001b[36mce5f621f-c26b-4ac4-becc-e7043afe1264\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[37mID: \u001b[0m\u001b[36m146be674-7521-4db6-bb70-287b22aa21aa\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[37mTool Args: \u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
"\u001b[36m│\u001b[0m \u001b[36m│\u001b[0m\n",
|
||||
|
@ -1121,7 +1111,7 @@
|
|||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "1d575307e41d46f7943746d4380d08bb",
|
||||
"model_id": "e1e2dc3abcd745fa80b32ef32b264396",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
|
@ -1136,33 +1126,39 @@
|
|||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"\u001b[92m11:28:03 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"\u001b[92m10:31:38 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:LiteLLM:\n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:httpx:HTTP Request: POST http://localhost:8321/v1/openai/v1/chat/completions \"HTTP/1.1 200 OK\"\n",
|
||||
"\u001b[92m11:28:07 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"INFO:LiteLLM:Wrapper: Completed Call, calling success_handler\n",
|
||||
"\u001b[92m11:28:07 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"\u001b[92m10:31:39 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"INFO:LiteLLM:Wrapper: Completed Call, calling success_handler\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\">{'query': 'return policy after 40 days', 'vector_db_id': 'acme_docs', 'top_k': 1, 'score_threshold': 0.5}\n",
|
||||
"</pre>\n"
|
||||
],
|
||||
"text/plain": [
|
||||
"{'query': 'return policy after 40 days', 'vector_db_id': 'acme_docs', 'top_k': 1, 'score_threshold': 0.5}\n"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
},
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"INFO:httpx:HTTP Request: POST http://0.0.0.0:8321/v1/vector-io/query \"HTTP/1.1 200 OK\"\n",
|
||||
"\u001b[92m10:31:39 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:LiteLLM:\n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:httpx:HTTP Request: POST http://localhost:8321/v1/openai/v1/chat/completions \"HTTP/1.1 200 OK\"\n",
|
||||
"\u001b[92m11:28:08 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"INFO:LiteLLM:Wrapper: Completed Call, calling success_handler\n",
|
||||
"\u001b[92m11:28:08 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:LiteLLM:\n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:httpx:HTTP Request: POST http://localhost:8321/v1/openai/v1/chat/completions \"HTTP/1.1 200 OK\"\n",
|
||||
"\u001b[92m11:28:09 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"INFO:LiteLLM:Wrapper: Completed Call, calling success_handler\n",
|
||||
"\u001b[92m11:28:09 - LiteLLM:INFO\u001b[0m: utils.py:3258 - \n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:LiteLLM:\n",
|
||||
"LiteLLM completion() model= together/meta-llama/Llama-3.3-70B-Instruct-Turbo; provider = openai\n",
|
||||
"INFO:httpx:HTTP Request: POST http://localhost:8321/v1/openai/v1/chat/completions \"HTTP/1.1 200 OK\"\n",
|
||||
"\u001b[92m11:28:11 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"\u001b[92m10:31:41 - LiteLLM:INFO\u001b[0m: utils.py:1260 - Wrapper: Completed Call, calling success_handler\n",
|
||||
"INFO:LiteLLM:Wrapper: Completed Call, calling success_handler\n"
|
||||
]
|
||||
},
|
||||
|
@ -1182,7 +1178,7 @@
|
|||
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"color: #008000; text-decoration-color: #008000\">╭──────────────────────────────────────────────── Task Completion ────────────────────────────────────────────────╮</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">Task Completed</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008000; text-decoration-color: #008000\">db7eab69-7488-4a66-a681-727ba841d6be</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008000; text-decoration-color: #008000\">b1362fb4-fe9b-479d-a01d-18bf38406780</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Agent: </span><span style=\"color: #008000; text-decoration-color: #008000\">RAG assistant</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Tool Args: </span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
|
@ -1194,7 +1190,7 @@
|
|||
"\u001b[32m╭─\u001b[0m\u001b[32m───────────────────────────────────────────────\u001b[0m\u001b[32m Task Completion \u001b[0m\u001b[32m───────────────────────────────────────────────\u001b[0m\u001b[32m─╮\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[1;32mTask Completed\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mName: \u001b[0m\u001b[32mdb7eab69-7488-4a66-a681-727ba841d6be\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mName: \u001b[0m\u001b[32mb1362fb4-fe9b-479d-a01d-18bf38406780\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mAgent: \u001b[0m\u001b[32mRAG assistant\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mTool Args: \u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
|
@ -1225,14 +1221,10 @@
|
|||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000; font-weight: bold\">Crew Execution Completed</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Name: </span><span style=\"color: #008000; text-decoration-color: #008000\">crew</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">ID: </span><span style=\"color: #008000; text-decoration-color: #008000\">ce5f621f-c26b-4ac4-becc-e7043afe1264</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">ID: </span><span style=\"color: #008000; text-decoration-color: #008000\">146be674-7521-4db6-bb70-287b22aa21aa</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Tool Args: </span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Final Output: Returns are accepted within 30 days of purchase. Since the question asks about returning a </span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">product after 40 days, it is clear that this falls outside of the specified return window. The return policy </span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">does not specify any exceptions or extensions, so it is likely that returns will not be accepted after 40 </span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">days. However, it's always best to contact the seller or retailer directly to confirm their return policy and</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">see if they can make any exceptions. The exact wording of the return policy is: \"Returns are accepted within </span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">30 days of purchase.\"</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">Final Output: Returns are accepted within 30 days of purchase. Therefore, you cannot return a product after </span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #c0c0c0; text-decoration-color: #c0c0c0\">40 days.</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">│</span> <span style=\"color: #008000; text-decoration-color: #008000\">│</span>\n",
|
||||
"<span style=\"color: #008000; text-decoration-color: #008000\">╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</span>\n",
|
||||
|
@ -1243,14 +1235,10 @@
|
|||
"\u001b[32m│\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[1;32mCrew Execution Completed\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mName: \u001b[0m\u001b[32mcrew\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mID: \u001b[0m\u001b[32mce5f621f-c26b-4ac4-becc-e7043afe1264\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mID: \u001b[0m\u001b[32m146be674-7521-4db6-bb70-287b22aa21aa\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mTool Args: \u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mFinal Output: Returns are accepted within 30 days of purchase. Since the question asks about returning a \u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mproduct after 40 days, it is clear that this falls outside of the specified return window. The return policy \u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mdoes not specify any exceptions or extensions, so it is likely that returns will not be accepted after 40 \u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mdays. However, it's always best to contact the seller or retailer directly to confirm their return policy and\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37msee if they can make any exceptions. The exact wording of the return policy is: \"Returns are accepted within \u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37m30 days of purchase.\"\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37mFinal Output: Returns are accepted within 30 days of purchase. Therefore, you cannot return a product after \u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[37m40 days.\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m│\u001b[0m \u001b[32m│\u001b[0m\n",
|
||||
"\u001b[32m╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯\u001b[0m\n"
|
||||
|
@ -1277,7 +1265,7 @@
|
|||
"output_type": "stream",
|
||||
"text": [
|
||||
"❓ Can I return a product after 40 days?\n",
|
||||
"💡 Returns are accepted within 30 days of purchase. Since the question asks about returning a product after 40 days, it is clear that this falls outside of the specified return window. The return policy does not specify any exceptions or extensions, so it is likely that returns will not be accepted after 40 days. However, it's always best to contact the seller or retailer directly to confirm their return policy and see if they can make any exceptions. The exact wording of the return policy is: \"Returns are accepted within 30 days of purchase.\"\n"
|
||||
"💡 Returns are accepted within 30 days of purchase. Therefore, you cannot return a product after 40 days.\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue