Skip to content

Reruns notebooks with new default semantic cache embedding model #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 1, 2025
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
148 changes: 77 additions & 71 deletions docs/overview/cli.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 42,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m09:58:03\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m RedisVL version 0.5.2\n"
"19:16:18 [RedisVL] INFO RedisVL version 0.5.2\n"
]
}
],
Expand Down Expand Up @@ -65,7 +65,7 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": 43,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -99,15 +99,14 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 44,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m18:12:32\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n",
"\u001b[32m18:12:32\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index created successfully\n"
"19:16:21 [RedisVL] INFO Index created successfully\n"
]
}
],
Expand All @@ -118,16 +117,15 @@
},
{
"cell_type": "code",
"execution_count": 33,
"execution_count": 45,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m18:12:35\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n",
"\u001b[32m18:12:35\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n",
"\u001b[32m18:12:35\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. vectorizers\n"
"19:16:24 [RedisVL] INFO Indices:\n",
"19:16:24 [RedisVL] INFO 1. vectorizers\n"
]
}
],
Expand All @@ -138,29 +136,28 @@
},
{
"cell_type": "code",
"execution_count": 34,
"execution_count": 46,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m18:12:37\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n",
"\n",
"\n",
"Index Information:\n",
"╭──────────────┬───────────────┬─────────────────────────────────────────╮\n",
"│ Index Name │ Storage Type │ Prefixes │ Index Options Indexing │\n",
"├──────────────┼───────────────┼─────────────────────────────────────────┤\n",
" vectorizers HASH ['doc'] [] 0 │\n",
"╰──────────────┴───────────────┴─────────────────────────────────────────╯\n",
"╭──────────────┬───────────────┬──────────────────────────────┬───────────────╮\n",
"│ Index Name │ Storage Type │ Prefixes │ Index Options │ Indexing │\n",
"├──────────────┼───────────────┼──────────────────────────────┼───────────────┤\n",
"| vectorizers | HASH | ['doc'] | [] | 0 |\n",
"╰──────────────┴───────────────┴──────────────────────────────┴───────────────╯\n",
"Index Fields:\n",
"╭───────────┬─────────────┬────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬─────────────────┬────────────────╮\n",
"│ Name │ Attribute │ Type │ Field Option │ Option Value │ Field Option │ Option Value │ Field Option Option Value │ Field Option │ Option Value │\n",
"├───────────┼─────────────┼────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼─────────────────┼────────────────┤\n",
"│ sentence │ sentence │ TEXT │ WEIGHT │ 1 │ │ │ │ │ │ │\n",
"│ embedding │ embedding │ VECTOR │ algorithm │ FLAT │ data_type │ FLOAT32 │ dim 768 │ distance_metric │ COSINE │\n",
"╰───────────┴─────────────┴────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴─────────────────┴────────────────╯\n"
"╭─────────────────┬─────────────────┬─────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬─────────────────┬────────────────╮\n",
"│ Name │ Attribute │ Type │ Field Option │ Option Value │ Field Option │ Option Value │ Field Option Option Value │ Field Option │ Option Value │\n",
"├─────────────────┼─────────────────┼─────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼─────────────────┼────────────────┤\n",
"│ sentence │ sentence │ TEXT │ WEIGHT │ 1 │ │ │\n",
"│ embedding │ embedding │ VECTOR │ algorithm │ FLAT │ data_type │ FLOAT32 │ dim │ 768 │ distance_metric │ COSINE │\n",
"╰─────────────────┴─────────────────┴─────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴─────────────────┴────────────────╯\n"
]
}
],
Expand All @@ -171,15 +168,14 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 47,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m18:12:40\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n",
"\u001b[32m18:12:40\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index deleted successfully\n"
"19:16:29 [RedisVL] INFO Index deleted successfully\n"
]
}
],
Expand All @@ -190,15 +186,14 @@
},
{
"cell_type": "code",
"execution_count": 36,
"execution_count": 48,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m18:12:43\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n",
"\u001b[32m18:12:43\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n"
"19:16:32 [RedisVL] INFO Indices:\n"
]
}
],
Expand All @@ -218,16 +213,14 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 49,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m18:13:21\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n",
"\u001b[32m18:13:21\u001b[0m \u001b[34mredisvl.index.index\u001b[0m \u001b[1;30mINFO\u001b[0m Index already exists, not overwriting.\n",
"\u001b[32m18:13:21\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index created successfully\n"
"19:16:35 [RedisVL] INFO Index created successfully\n"
]
}
],
Expand All @@ -239,16 +232,15 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 50,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m18:13:25\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n",
"\u001b[32m18:13:25\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n",
"\u001b[32m18:13:25\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. vectorizers\n"
"19:16:38 [RedisVL] INFO Indices:\n",
"19:16:38 [RedisVL] INFO 1. vectorizers\n"
]
}
],
Expand All @@ -259,39 +251,38 @@
},
{
"cell_type": "code",
"execution_count": 40,
"execution_count": 51,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m18:13:31\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n",
"\n",
"Statistics:\n",
"╭─────────────────────────────┬─────────╮\n",
"│ Stat Key │ Value │\n",
"├─────────────────────────────┼─────────┤\n",
"│ num_docs │ 0 │\n",
"│ num_terms │ 0 │\n",
"│ max_doc_id │ 0 │\n",
"│ num_records │ 0 │\n",
"│ percent_indexed │ 1 │\n",
"│ hash_indexing_failures │ 3 │\n",
"│ number_of_uses │ 2 │\n",
"│ bytes_per_record_avg │ nan │\n",
"│ doc_table_size_mb │ 0 │\n",
"│ inverted_sz_mb │ 0 │\n",
"│ key_table_size_mb │ 0 │\n",
"│ offset_bits_per_record_avg │ nan │\n",
"│ offset_vectors_sz_mb │ 0 │\n",
"│ offsets_per_term_avg │ nan │\n",
"│ records_per_doc_avg │ nan │\n",
"│ sortable_values_size_mb │ 0 │\n",
"│ total_indexing_time │ 0.02 │\n",
"│ total_inverted_index_blocks │ 0 │\n",
"│ vector_index_sz_mb │ 0 │\n",
"╰─────────────────────────────┴─────────╯\n"
"╭─────────────────────────────┬────────────╮\n",
"│ Stat Key │ Value │\n",
"├─────────────────────────────┼────────────┤\n",
"│ num_docs │ 0 │\n",
"│ num_terms │ 0 │\n",
"│ max_doc_id │ 0 │\n",
"│ num_records │ 0 │\n",
"│ percent_indexed │ 1 │\n",
"│ hash_indexing_failures │ 0 │\n",
"│ number_of_uses │ 1 │\n",
"│ bytes_per_record_avg │ nan │\n",
"│ doc_table_size_mb │ 0 │\n",
"│ inverted_sz_mb │ 0 │\n",
"│ key_table_size_mb │ 0 │\n",
"│ offset_bits_per_record_avg │ nan │\n",
"│ offset_vectors_sz_mb │ 0 │\n",
"│ offsets_per_term_avg │ nan │\n",
"│ records_per_doc_avg │ nan │\n",
"│ sortable_values_size_mb │ 0 │\n",
"│ total_indexing_time │ 0 │\n",
"│ total_inverted_index_blocks │ 0 │\n",
"│ vector_index_sz_mb │ 0.00818634 │\n",
"╰─────────────────────────────┴────────────╯\n"
]
}
],
Expand Down Expand Up @@ -327,16 +318,15 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": 52,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m18:13:36\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n",
"\u001b[32m18:13:36\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n",
"\u001b[32m18:13:36\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. vectorizers\n"
"19:16:43 [RedisVL] INFO Indices:\n",
"19:16:43 [RedisVL] INFO 1. vectorizers\n"
]
}
],
Expand All @@ -356,19 +346,35 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 53,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"19:16:46 [RedisVL] ERROR Error 8 connecting to rediss:6379. nodename nor servname provided, or not known.\n"
]
}
],
"source": [
"# connect to rediss://jane_doe:password123@localhost:6379\n",
"!rvl index listall --user jane_doe -a password123 --ssl"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 54,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"19:16:49 [RedisVL] INFO Index deleted successfully\n"
]
}
],
"source": [
"!rvl index destroy -i vectorizers"
]
Expand All @@ -390,7 +396,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.13.2"
"version": "3.13.0"
}
},
"nbformat": 4,
Expand Down
Loading