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

Jonbesga/tests #2

Merged
merged 9 commits into from
Mar 19, 2024
Merged

Jonbesga/tests #2

merged 9 commits into from
Mar 19, 2024

Conversation

jonbesga
Copy link
Contributor

@jonbesga jonbesga commented Mar 4, 2024

No description provided.

@jonbesga jonbesga force-pushed the jonbesga/tests branch 2 times, most recently from 8c57a4f to 4b6fb94 Compare March 4, 2024 11:32
@jonbesga jonbesga changed the base branch from main to add-genai-client March 4, 2024 11:33
@jonbesga jonbesga requested a review from willtai March 4, 2024 11:36
@willtai willtai mentioned this pull request Mar 4, 2024
11 tasks
pyproject.toml Outdated Show resolved Hide resolved
@jonbesga jonbesga force-pushed the jonbesga/tests branch 3 times, most recently from f8bb374 to a009b40 Compare March 4, 2024 14:27
Base automatically changed from add-genai-client to main March 4, 2024 17:00
tests/test_client.py Outdated Show resolved Hide resolved
@willtai willtai force-pushed the jonbesga/tests branch 2 times, most recently from 4222460 to 0c921fe Compare March 11, 2024 14:18
relock dependencies

Linting with ruff

fixed linting issues
@oskarhane
Copy link
Member

@willtai willtai force-pushed the jonbesga/tests branch 3 times, most recently from a262c48 to d1685dc Compare March 13, 2024 16:44
src/neo4j_genai/client.py Outdated Show resolved Hide resolved
…ent's _database_query()

Changed test_client.py to have mocks at execute_query level

Changed precommit config to include ruff linting and formatting

Update pre-commit

Corrected cypher query error test and dimensions constraint in CreateIndexModel data type

ruff formatting

remove drop index in example
Copy link
Contributor

@stellasia stellasia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments inline

examples/similarity_search_for_text.py Outdated Show resolved Hide resolved
src/neo4j_genai/client.py Outdated Show resolved Hide resolved
src/neo4j_genai/client.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
YIELD node, score
"""

with pytest.raises(ValueError):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this ValueError arising because score is not a float? I think with the custom retrieval query feature we may not be so strict on the returned type from similarity_search() as the user can technically return any type they want, but technically not part of this PR so just an FYI

@jonbesga jonbesga merged commit a212d89 into main Mar 19, 2024
3 of 4 checks passed
@jonbesga jonbesga deleted the jonbesga/tests branch March 19, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants