Skip to content

Commit fbab734

Browse files
authored
fetch surrounding chunks - added colab (#262)
added open in colab
1 parent befc009 commit fbab734

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

supporting-blog-content/fetch-surrounding-chunks/fetch-surrounding-chunks.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"source": [
2020
"# Fetch surronding chucks (N-1, N+1)\n",
2121
"\n",
22+
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://ela.st/fetch-surrounding-chunks)\n",
23+
"\n",
2224
"This notebook is designed to handle the ingestion of book text (Harry Potter and the Sorcerer's Stone) into an Elasticsearch Cloud instance. It includes partitioning the book text into chapters and chunking the chapter text, which are then ingested into Elasticsearch. The setup utilizes a nested structure, and for each chunk, it stores dense and sparse (ELSER) vector representations along with the text representation.\n",
2325
"\n",
2426
"Searches are performed using dense vector comparisons, sparse vector comparisons, and text search in parallel to demonstrate the power of hybrid search strategies. Additionally, the notebook is configured to retrieve adjacent chunks (n-1 and n+1), allowing for a more contextual understanding of the search results.\n",

0 commit comments

Comments
 (0)