Skip to content

Commit

Permalink
Merge branch 'master' into thomasht86/add-colpalidemo-notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 authored Nov 1, 2024
2 parents 9436b1e + cef9799 commit 8388281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"\n",
"> M3 stands for Multi-linguality (100+ languages), Multi-granularities (input length up to 8192), Multi-Functionality (unification of dense, lexical, multi-vec (colbert) retrieval).\n",
"\n",
"This notebook demonstrates how to use the [BGE-M3](https://github.com/FlagOpen/FlagEmbedding/tree/master/FlagEmbedding/BGE_M3) embeddings and\n",
"This notebook demonstrates how to use the [BGE-M3](https://github.com/FlagOpen/FlagEmbedding/blob/master/research/BGE_M3/BGE_M3.pdf) embeddings and\n",
"represent all three embedding representations in Vespa! Vespa is the only scalable serving engine that can handle all M3 representations.\n",
"\n",
"This code is inspired by the README from the model hub [BAAI/bge-m3](https://huggingface.co/BAAI/bge-m3).\n",
Expand Down Expand Up @@ -217,7 +217,7 @@
"- max_sim (The colbert max sim operation)\n",
"\n",
"Then, we combine these three scoring functions using a linear combination with weights, as suggested\n",
"by the authors [here](https://github.com/FlagOpen/FlagEmbedding/tree/master/FlagEmbedding/BGE_M3#compute-score-for-text-pairs).\n"
"by the authors [here](https://github.com/FlagOpen/FlagEmbedding/blob/master/research/BGE_M3/BGE_M3.pdf#compute-score-for-text-pairs).\n"
]
},
{
Expand Down
10 changes: 0 additions & 10 deletions vespacli/utils/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@

import toml
import sys
import re
from pathlib import Path
import argparse

PYPROJECT_TOML_PATH = Path(__file__).parent.parent / "pyproject.toml"
VERSION_FILE_PATH = Path(__file__).parent.parent / "vespacli" / "_version_generated.py"


def update_version(new_version: str):
Expand All @@ -19,14 +17,6 @@ def update_version(new_version: str):
with open("pyproject.toml", "w") as f:
toml.dump(data, f)

# Update version in vespacli/_version_generated.py
with open(VERSION_FILE_PATH, "r") as f:
content = f.read()
new_content = re.sub(
r'vespa_version = ".*"', f'vespa_version = "{new_version}"', content
)
with open("vespacli/_version_generated.py", "w") as f:
f.write(new_content)
print(f"Updated version to {new_version}")


Expand Down

0 comments on commit 8388281

Please sign in to comment.