Skip to content
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

Add Jupyter Notebook and data associated with 'LLM RAG for Beginners' post #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions nodejs/jupyter-labs/RAG/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.json* filter=lfs diff=lfs merge=lfs -text
3 changes: 3 additions & 0 deletions nodejs/jupyter-labs/RAG/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
archive/
.idea/
.ipynb_checkpoints/
814 changes: 814 additions & 0 deletions nodejs/jupyter-labs/RAG/RAG.ipynb

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions nodejs/jupyter-labs/RAG/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# LLM RAG for Beginners, with Bonsai

This example is related to
the [LLM RAG for Beginners: A Practical Guide with Elasticsearch and OpenSearch](https://bonsai.io/blog)
post.

## Pre-requisites

The accompanying [Jupyter](https://jupyter.org/) Notebook makes use of
the [Deno Jupyter Kernel](https://docs.deno.com/runtime/reference/cli/jupyter/), which must
be installed prior to use!

Once installed, start your Jupyter Lab via `jupyter lab` and open up the [RAG.ipynb](./RAG.ipynb) file in the Jupyter
UI!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions nodejs/jupyter-labs/RAG/assets/index-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions nodejs/jupyter-labs/RAG/assets/sequenceDiagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions nodejs/jupyter-labs/RAG/movie-data/conversations.json
Git LFS file not shown
3 changes: 3 additions & 0 deletions nodejs/jupyter-labs/RAG/movie-data/corpus.json
Git LFS file not shown
3 changes: 3 additions & 0 deletions nodejs/jupyter-labs/RAG/movie-data/index.json
Git LFS file not shown
3 changes: 3 additions & 0 deletions nodejs/jupyter-labs/RAG/movie-data/speakers.json
Git LFS file not shown
3 changes: 3 additions & 0 deletions nodejs/jupyter-labs/RAG/movie-data/utterances.jsonl
Git LFS file not shown