Skip to content

Commit

Permalink
Add get_embedding_dimension to embedders (#6392)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 3dc9b38c0ec25cb3c036d84d3131913839ed58ef
  • Loading branch information
szymondudycz authored and Manul from Pathway committed May 7, 2024
1 parent 557393a commit 05c8377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pipelines/local/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def run(
**kwargs,
):
embedder = SentenceTransformerEmbedder(model=embedder_locator, device=device)
embedding_dimension = len(embedder.__wrapped__(""))
embedding_dimension = len(embedder.__wrapped__("."))

documents = pw.io.jsonlines.read(
data_dir,
Expand Down

0 comments on commit 05c8377

Please sign in to comment.