Elffuss BraidHub

kikocis/lancedb public

docs: fix get_registry() usage (#1601)

Docs used `get_registry.get(...)` whereas what works is
`get_registry().get(...)`. Fixing the two instances I found. I tested
the open clip version by trying it locally in a Jupyter notebook.
Changesetbbc8a2ecbe2c9422af46dad75137eaadc9bac5ee7597fc05f9309a25447659fc
AuthorPhilip Zeyliger <philip.zeyliger@gmail.com> · 2024-09-05 13:18 -07:00
CommitterGitHub <noreply@github.com> · 2024-09-06 01:48 +05:30
Parents76ea2547d3cf

Browse the files at this changeset

2 files changed

modified docs/src/embeddings/available_embedding_models/multimodal_embedding_functions/imagebind_embedding.md +1 −1
@@ -17,7 +17,7 @@
1717 from lancedb.embeddings import get_registry
1818
1919 db = lancedb.connect(tmp_path)
20-func = get_registry.get("imagebind").create()
20+func = get_registry().get("imagebind").create()
2121
2222 class ImageBindModel(LanceModel):
2323 text: str
modified docs/src/embeddings/available_embedding_models/multimodal_embedding_functions/openclip_embedding.md +1 −1
@@ -20,7 +20,7 @@
2020 from lancedb.embeddings import get_registry
2121
2222 db = lancedb.connect(tmp_path)
23-func = get_registry.get("open-clip").create()
23+func = get_registry().get("open-clip").create()
2424
2525 class Images(LanceModel):
2626 label: str