Skip to content

Commit 0692bbf

Browse files
committed
change workflow
1 parent 52584a1 commit 0692bbf

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release-manual.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
needs: update-version
5858
uses: ./.github/workflows/build-reusable.yml
5959
with:
60-
ref: ${{ needs.update-version.outputs.commit-sha }}
60+
ref: 'main'
6161

6262
publish:
6363
name: Publish and Release
@@ -70,7 +70,7 @@ jobs:
7070
steps:
7171
- uses: actions/checkout@v4
7272
with:
73-
ref: ${{ needs.update-version.outputs.commit-sha }}
73+
ref: 'main'
7474

7575
- name: Download all artifacts
7676
uses: actions/download-artifact@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Once the index is built, you can ask questions like:
195195
- "Show me emails about travel expenses"
196196
</details>
197197

198-
### 🔍 Time Machine for the Web: RAG Your Entire Google Browser History!
198+
### 🔍 Time Machine for the Web: RAG Your Entire Chrome Browser History!
199199

200200
<p align="center">
201201
<img src="videos/google_clear.gif" alt="LEANN Browser History Search Demo" width="600">

packages/leann-backend-hnsw/leann_backend_hnsw/hnsw_backend.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ def __init__(self, **kwargs):
4848
self.efConstruction = self.build_params.setdefault("efConstruction", 200)
4949
self.distance_metric = self.build_params.setdefault("distance_metric", "mips")
5050
self.dimensions = self.build_params.get("dimensions")
51+
if not self.is_recompute:
52+
if self.is_compact:
53+
# TODO: support this case @andy
54+
raise ValueError("is_recompute is False, but is_compact is True. This is not compatible now. change is compact to False and you can use the original HNSW index.")
5155

5256
def build(self, data: np.ndarray, ids: List[str], index_path: str, **kwargs):
5357
from . import faiss # type: ignore

0 commit comments

Comments
 (0)