Skip to content

Commit

Permalink
feat: bump to colpali-v1.2 in test
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywu71 committed Sep 17, 2024
1 parent 4b5d968 commit 5904c38
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/all.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
from colpali_engine.utils.torch_utils import get_torch_device

from byaldi import RAGMultiModalModel

device = get_torch_device("auto")
print(f"Using device: {device}")


def test_single_pdf():
print("Testing single PDF indexing and retrieval...")

# Initialize the model
model = RAGMultiModalModel.from_pretrained("vidore/colpali")
model = RAGMultiModalModel.from_pretrained("vidore/colpali-v1.2", device=device)

# Index a single PDF
model.index(
Expand Down

0 comments on commit 5904c38

Please sign in to comment.