Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 40 additions & 6 deletions notebooks/api-examples/1-corpus-creation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,14 @@
"cell_type": "code",
"execution_count": 1,
"id": "6019e01a",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T21:48:26.180562Z",
"iopub.status.busy": "2026-05-28T21:48:26.180217Z",
"iopub.status.idle": "2026-05-28T21:48:26.236525Z",
"shell.execute_reply": "2026-05-28T21:48:26.236257Z"
}
},
"outputs": [],
"source": [
"import os\n",
Expand Down Expand Up @@ -94,7 +101,14 @@
"cell_type": "code",
"execution_count": 2,
"id": "40947545",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T21:48:26.237922Z",
"iopub.status.busy": "2026-05-28T21:48:26.237823Z",
"iopub.status.idle": "2026-05-28T21:48:26.777803Z",
"shell.execute_reply": "2026-05-28T21:48:26.776609Z"
}
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -175,7 +189,14 @@
"cell_type": "code",
"execution_count": 3,
"id": "c154dd4b",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T21:48:26.782197Z",
"iopub.status.busy": "2026-05-28T21:48:26.781914Z",
"iopub.status.idle": "2026-05-28T21:48:26.901378Z",
"shell.execute_reply": "2026-05-28T21:48:26.900600Z"
}
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -255,15 +276,28 @@
"cell_type": "code",
"execution_count": 4,
"id": "21facbac",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T21:48:26.904584Z",
"iopub.status.busy": "2026-05-28T21:48:26.904092Z",
"iopub.status.idle": "2026-05-28T21:48:28.240950Z",
"shell.execute_reply": "2026-05-28T21:48:28.240002Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\n",
"=== Your Corpora ===\n",
"Total corpora found: 52\n",
"=== Your Corpora ===\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Total corpora found: 54\n",
"\n",
"\n",
"AI Research Papers\n",
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"id": "colab-badge",
"metadata": {},
"source": [
"<a href=\"https://colab.research.google.com/github/vectara/example-notebooks/blob/main/notebooks/api-examples/10-agent-schedules.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
"<a href=\"https://colab.research.google.com/github/vectara/example-notebooks/blob/main/notebooks/api-examples/11-agent-schedules.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
Expand Down Expand Up @@ -63,7 +63,14 @@
"cell_type": "code",
"execution_count": 1,
"id": "setup",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T22:20:35.231817Z",
"iopub.status.busy": "2026-05-28T22:20:35.231316Z",
"iopub.status.idle": "2026-05-28T22:20:35.294881Z",
"shell.execute_reply": "2026-05-28T22:20:35.294600Z"
}
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -100,7 +107,14 @@
"cell_type": "code",
"execution_count": 2,
"id": "1903363f",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T22:20:35.296271Z",
"iopub.status.busy": "2026-05-28T22:20:35.296154Z",
"iopub.status.idle": "2026-05-28T22:20:35.298720Z",
"shell.execute_reply": "2026-05-28T22:20:35.298496Z"
}
},
"outputs": [],
"source": [
"# Load the shared helpers (delete_and_create_agent).\n",
Expand Down Expand Up @@ -136,13 +150,20 @@
"cell_type": "code",
"execution_count": 3,
"id": "step1-code",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T22:20:35.299979Z",
"iopub.status.busy": "2026-05-28T22:20:35.299880Z",
"iopub.status.idle": "2026-05-28T22:20:39.177117Z",
"shell.execute_reply": "2026-05-28T22:20:39.176088Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Created agent 'Research Digest Generator' (key: agt_research_digest_generator_1d99)\n"
"Created agent 'Research Digest Generator' (key: agt_research_digest_generator_81da)\n"
]
}
],
Expand Down Expand Up @@ -213,14 +234,21 @@
"cell_type": "code",
"execution_count": 4,
"id": "step2-code",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T22:20:39.181600Z",
"iopub.status.busy": "2026-05-28T22:20:39.181343Z",
"iopub.status.idle": "2026-05-28T22:20:39.625339Z",
"shell.execute_reply": "2026-05-28T22:20:39.624235Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Schedule created: Daily Research Digest\n",
" Key: asc_daily_research_digest_3d4e\n",
" Key: asc_daily_research_digest_a99e\n",
" Cron: 0 9 * * 1-5\n",
" Enabled: False\n",
" Max executions to keep: 20\n"
Expand Down Expand Up @@ -285,14 +313,21 @@
"cell_type": "code",
"execution_count": 5,
"id": "step3-code",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T22:20:39.631171Z",
"iopub.status.busy": "2026-05-28T22:20:39.630454Z",
"iopub.status.idle": "2026-05-28T22:20:39.822538Z",
"shell.execute_reply": "2026-05-28T22:20:39.821077Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Schedule created: Periodic Research Check\n",
" Key: asc_periodic_research_check_6e65\n",
" Key: asc_periodic_research_check_c53e\n",
" Interval: PT6H\n",
" Enabled: False\n"
]
Expand Down Expand Up @@ -353,22 +388,29 @@
"cell_type": "code",
"execution_count": 6,
"id": "step4-code",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T22:20:39.826923Z",
"iopub.status.busy": "2026-05-28T22:20:39.826429Z",
"iopub.status.idle": "2026-05-28T22:20:42.315225Z",
"shell.execute_reply": "2026-05-28T22:20:42.314553Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Found 2 schedule(s):\n",
"\n",
" asc_periodic_research_check_6e65\n",
" Key: asc_periodic_research_check_6e65\n",
" asc_periodic_research_check_c53e\n",
" Key: asc_periodic_research_check_c53e\n",
" Type: interval (PT6H)\n",
" Enabled: False\n",
" Last execution: Never\n",
"\n",
" asc_daily_research_digest_3d4e\n",
" Key: asc_daily_research_digest_3d4e\n",
" asc_daily_research_digest_a99e\n",
" Key: asc_daily_research_digest_a99e\n",
" Type: interval (PT1H)\n",
" Enabled: False\n",
" Last execution: Never\n",
Expand Down Expand Up @@ -435,14 +477,21 @@
"cell_type": "code",
"execution_count": 7,
"id": "step5-code",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T22:20:42.318699Z",
"iopub.status.busy": "2026-05-28T22:20:42.318258Z",
"iopub.status.idle": "2026-05-28T22:20:42.616398Z",
"shell.execute_reply": "2026-05-28T22:20:42.615487Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Schedule updated: asc_daily_research_digest_3d4e\n",
" Key: asc_daily_research_digest_3d4e\n",
"Schedule updated: asc_daily_research_digest_a99e\n",
" Key: asc_daily_research_digest_a99e\n",
" Enabled: True\n",
" New cron: 0 * * * *\n",
" Description: Generates a research digest every hour (demo)\n"
Expand Down Expand Up @@ -492,7 +541,14 @@
"cell_type": "code",
"execution_count": 8,
"id": "step6-code",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T22:20:42.621687Z",
"iopub.status.busy": "2026-05-28T22:20:42.621087Z",
"iopub.status.idle": "2026-05-28T22:20:42.768396Z",
"shell.execute_reply": "2026-05-28T22:20:42.766666Z"
}
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -547,7 +603,14 @@
"cell_type": "code",
"execution_count": 9,
"id": "step7-code",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T22:20:42.773830Z",
"iopub.status.busy": "2026-05-28T22:20:42.773239Z",
"iopub.status.idle": "2026-05-28T22:20:42.780942Z",
"shell.execute_reply": "2026-05-28T22:20:42.780091Z"
}
},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -605,14 +668,33 @@
"cell_type": "code",
"execution_count": 10,
"id": "cleanup-code",
"metadata": {},
"metadata": {
"execution": {
"iopub.execute_input": "2026-05-28T22:20:42.783817Z",
"iopub.status.busy": "2026-05-28T22:20:42.783555Z",
"iopub.status.idle": "2026-05-28T22:20:44.965926Z",
"shell.execute_reply": "2026-05-28T22:20:44.964388Z"
}
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Deleted schedule: Daily Research Digest\n",
"Deleted schedule: Periodic Research Check\n",
"Deleted schedule: Daily Research Digest\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Deleted schedule: Periodic Research Check\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Deleted agent: Research Digest Generator\n"
]
}
Expand Down
Loading