Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run precommit in CI on PR #50

Merged
merged 2 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pre-commit

on: [push]
on: [push, pull_request]

jobs:
build:
Expand Down
8 changes: 7 additions & 1 deletion src/vecs/adapter/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ class TextEmbedding(AdapterStep):
embeddings using a specified sentence transformers model.
"""

def __init__(self, *, model: TextEmbeddingModel, batch_size: int = 8, use_auth_token: str = None):
def __init__(
self,
*,
model: TextEmbeddingModel,
batch_size: int = 8,
use_auth_token: str = None,
):
"""
Initializes the TextEmbedding adapter with a sentence transformers model.

Expand Down