Skip to content

Conversation

@paulz
Copy link
Contributor

@paulz paulz commented Mar 26, 2025

Use smaller embedding size to stabilize snapshots tests.

This pull request includes several changes to the examples/team_recommender/tests/example_1_text_response and related files to improve the handling of embedding models, refactor functions, and update test cases. The most important changes include modifying the get_embedding function to use a constant for embedding dimensions, refactoring the create_embedding_object function, and updating test cases to reflect these changes.

Improvements to embedding models:

Updates to test cases:

Minor improvements:

@paulz paulz force-pushed the run-tests-on-ci branch from a442b4e to c059ed4 Compare March 26, 2025 19:16
carl and others added 4 commits March 27, 2025 12:14
refactor: simplify embedding creation by removing model parameter and setting default

Signed-off-by: Paul Zabelin <[email protected]>
# Conflicts:
#	examples/team_recommender/tests/example_1_text_response/openai_embeddings.py
#	examples/team_recommender/tests/example_1_text_response/snapshots/test_compute_cosine_similarity/test_reproducing_the_same_text_embedding/hallucination_response_large_same_text_embedding.json
#	examples/team_recommender/tests/example_1_text_response/test_good_fit_for_project.py
@paulz paulz marked this pull request as ready for review March 27, 2025 20:33
@carl
Copy link
Contributor

carl commented Mar 27, 2025

🐻 approved

@paulz paulz merged commit 6dc5a31 into thisisartium:main Mar 27, 2025
1 check passed
@paulz paulz deleted the run-tests-on-ci branch March 27, 2025 20:35
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.

2 participants