Skip to content

Commit

Permalink
Merge pull request #963 from vespa-engine/thomasht86/add-colpalidemo-…
Browse files Browse the repository at this point in the history
…notebook

(notebook) add colpalidemo notebook
  • Loading branch information
thomasht86 authored Nov 1, 2024
2 parents cef9799 + 95b6f05 commit 1697ba2
Show file tree
Hide file tree
Showing 8 changed files with 11,073 additions and 8,616 deletions.
7 changes: 5 additions & 2 deletions .github/scripts/replace_pip_install_notebooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ extract_and_modify_pip_installation() {
# Strip the leading "!" and remove 'pip(3) install' and '-U' flags
modified_line=$(echo "$line" | sed 's/^!pip[3]* install -U //;s/^!pip[3]* install //')

# Remove 'pyvespa' and 'vespacli' from the line
modified_line=$(echo "$modified_line" | sed 's/pyvespa//g' | sed 's/vespacli//g' | sed 's/ / /g')
# Remove 'pyvespa' and 'vespacli' along with any following characters until a space
modified_line=$(echo "$modified_line" | sed 's/\bpyvespa[^ ]*//g; s/\bvespacli[^ ]*//g; s/ / /g')

# Trim leading and trailing whitespace
modified_line=$(echo "$modified_line" | sed 's/^[ \t]*//;s/[ \t]*$//')

# Write each package to additional_requirements.txt without adding extra new lines
echo "$modified_line" | tr ' ' '\n' | sed '/^$/d' >> additional_requirements.txt
Expand Down
Binary file added docs/sphinx/source/_static/colpalidemo_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/sphinx/source/_static/colpalidemo_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
},
"outputs": [],
"source": [
"!pip3 install colpali-engine==0.2.2 pdf2image pypdf pyvespa vespacli requests numpy"
"!pip3 install colpali-engine==0.2.2 pdf2image pypdf==5.0.1 pyvespa vespacli requests numpy"
]
},
{
Expand Down Expand Up @@ -6456,4 +6456,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}

Large diffs are not rendered by default.

Loading

0 comments on commit 1697ba2

Please sign in to comment.