-
Notifications
You must be signed in to change notification settings - Fork 215
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
chore: get rid of nested parametrization in vectorizer tests #394
chore: get rid of nested parametrization in vectorizer tests #394
Conversation
f9cb895
to
fd3952e
Compare
@@ -2053,7 +2053,6 @@ wheels = [ | |||
|
|||
[[package]] | |||
name = "pgai" | |||
version = "0.5.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when i ran uv sync --all-extras
this was removed, I didn't do that 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya I don't quite get what's going on there. I suspect that different minor versions (0.4 vs 0.5) of uv treat this parameter differently, and some write it in and others remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow - this is so much better. Thank you!
cur.executemany( | ||
"INSERT INTO blog (id, id2, content) VALUES (%s, %s, %s)", values | ||
) | ||
return table_name | ||
|
||
|
||
@pytest.fixture(scope="session") | ||
def ollama_connection_url(): | ||
def ollama_container_url_or_url(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This confuses me, what about just ollama_url
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeh fair, I was just confused why this is a fixture and not a constant 😅 which is why i put the container in there, but tbh fair to encapsulate and hide the details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels like a late-Christmas present 💯 💯
fd3952e
to
5b44a00
Compare
Refactors the vectorizer test suite to be more easily readable by:
run_vectorizer_worker
helper function standardizing CLI invocationI also want to split the file up, but wondering how and if I should do that separately.