Skip to content

Commit f3e6950

Browse files
committed
fix: Display output in mardown
1 parent 5c04d93 commit f3e6950

File tree

1 file changed

+33
-40
lines changed

1 file changed

+33
-40
lines changed

notebooks/en/code_search.ipynb

Lines changed: 33 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -172,41 +172,39 @@
172172
},
173173
{
174174
"cell_type": "code",
175-
"execution_count": 3,
175+
"execution_count": null,
176176
"metadata": {
177177
"colab": {
178178
"base_uri": "https://localhost:8080/"
179179
},
180180
"id": "nZEBXstzQQCk",
181181
"outputId": "81d723e6-08c2-4a25-8b8e-508c4a7e86b1"
182182
},
183-
"outputs": [
184-
{
185-
"data": {
186-
"text/plain": [
187-
"{'name': 'InvertedIndexRam',\n",
188-
" 'signature': '# [doc = \" Inverted flatten index from dimension id to posting list\"] # [derive (Debug , Clone , PartialEq)] pub struct InvertedIndexRam { # [doc = \" Posting lists for each dimension flattened (dimension id -> posting list)\"] # [doc = \" Gaps are filled with empty posting lists\"] pub postings : Vec < PostingList > , # [doc = \" Number of unique indexed vectors\"] # [doc = \" pre-computed on build and upsert to avoid having to traverse the posting lists.\"] pub vector_count : usize , }',\n",
189-
" 'code_type': 'Struct',\n",
190-
" 'docstring': '= \" Inverted flatten index from dimension id to posting list\"',\n",
191-
" 'line': 15,\n",
192-
" 'line_from': 13,\n",
193-
" 'line_to': 22,\n",
194-
" 'context': {'module': 'inverted_index',\n",
195-
" 'file_path': 'lib/sparse/src/index/inverted_index/inverted_index_ram.rs',\n",
196-
" 'file_name': 'inverted_index_ram.rs',\n",
197-
" 'struct_name': None,\n",
198-
" 'snippet': '/// Inverted flatten index from dimension id to posting list\\n#[derive(Debug, Clone, PartialEq)]\\npub struct InvertedIndexRam {\\n /// Posting lists for each dimension flattened (dimension id -> posting list)\\n /// Gaps are filled with empty posting lists\\n pub postings: Vec<PostingList>,\\n /// Number of unique indexed vectors\\n /// pre-computed on build and upsert to avoid having to traverse the posting lists.\\n pub vector_count: usize,\\n}\\n'}}"
199-
]
200-
},
201-
"execution_count": 3,
202-
"metadata": {},
203-
"output_type": "execute_result"
204-
}
205-
],
183+
"outputs": [],
206184
"source": [
207185
"structures[0]"
208186
]
209187
},
188+
{
189+
"cell_type": "markdown",
190+
"metadata": {},
191+
"source": [
192+
"```python\n",
193+
"{'name': 'InvertedIndexRam',\n",
194+
" 'signature': '# [doc = \" Inverted flatten index from dimension id to posting list\"] # [derive (Debug , Clone , PartialEq)] pub struct InvertedIndexRam { # [doc = \" Posting lists for each dimension flattened (dimension id -> posting list)\"] # [doc = \" Gaps are filled with empty posting lists\"] pub postings : Vec < PostingList > , # [doc = \" Number of unique indexed vectors\"] # [doc = \" pre-computed on build and upsert to avoid having to traverse the posting lists.\"] pub vector_count : usize , }',\n",
195+
" 'code_type': 'Struct',\n",
196+
" 'docstring': '= \" Inverted flatten index from dimension id to posting list\"',\n",
197+
" 'line': 15,\n",
198+
" 'line_from': 13,\n",
199+
" 'line_to': 22,\n",
200+
" 'context': {'module': 'inverted_index',\n",
201+
" 'file_path': 'lib/sparse/src/index/inverted_index/inverted_index_ram.rs',\n",
202+
" 'file_name': 'inverted_index_ram.rs',\n",
203+
" 'struct_name': None,\n",
204+
" 'snippet': '/// Inverted flatten index from dimension id to posting list\\n#[derive(Debug, Clone, PartialEq)]\\npub struct InvertedIndexRam {\\n /// Posting lists for each dimension flattened (dimension id -> posting list)\\n /// Gaps are filled with empty posting lists\\n pub postings: Vec<PostingList>,\\n /// Number of unique indexed vectors\\n /// pre-computed on build and upsert to avoid having to traverse the posting lists.\\n pub vector_count: usize,\\n}\\n'}}\n",
205+
" ```"
206+
]
207+
},
210208
{
211209
"cell_type": "markdown",
212210
"metadata": {
@@ -314,7 +312,7 @@
314312
},
315313
{
316314
"cell_type": "code",
317-
"execution_count": 7,
315+
"execution_count": null,
318316
"metadata": {
319317
"colab": {
320318
"base_uri": "https://localhost:8080/",
@@ -323,25 +321,20 @@
323321
"id": "zosN7TC9QQCl",
324322
"outputId": "38e0d938-3fb1-4426-f00c-74a42267bf7d"
325323
},
326-
"outputs": [
327-
{
328-
"data": {
329-
"application/vnd.google.colaboratory.intrinsic+json": {
330-
"type": "string"
331-
},
332-
"text/plain": [
333-
"'Function Hnsw discover precision that does Checks discovery search precision when using hnsw index this is different from the tests in defined as Fn hnsw discover precision module integration file hnsw_discover_test rs'"
334-
]
335-
},
336-
"execution_count": 7,
337-
"metadata": {},
338-
"output_type": "execute_result"
339-
}
340-
],
324+
"outputs": [],
341325
"source": [
342326
"text_representations[1000]"
343327
]
344328
},
329+
{
330+
"cell_type": "markdown",
331+
"metadata": {},
332+
"source": [
333+
"```python\n",
334+
"'Function Hnsw discover precision that does Checks discovery search precision when using hnsw index this is different from the tests in defined as Fn hnsw discover precision module integration file hnsw_discover_test rs'\n",
335+
"```"
336+
]
337+
},
345338
{
346339
"cell_type": "markdown",
347340
"metadata": {

0 commit comments

Comments
 (0)