-
Notifications
You must be signed in to change notification settings - Fork 1
Added embedding benchmark along with new config file and plot updates #14
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
Open
radoslavralev
wants to merge
3
commits into
main
Choose a base branch
from
feat-larger-benchmarks
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # Example usage: | ||
| uv run run_benchmark.py \ | ||
| --dataset_dir "dataset" \ | ||
| --output_dir "limitations-experiments-gte-modernbert-base-lora" \ | ||
| --models "redis/model-a-baseline" "redis/model-b-structured" \ | ||
| --dataset_names "sentencepairs_v3_unique_sentences.csv" "vizio_unique_medium.csv"\ | ||
| --sentence_column "sentence" \ | ||
| --n_runs 3 \ | ||
| --n_samples 16384 \ | ||
| --sample_ratio 0.8 \ | ||
| --llm_name "tensoropera/Fox-1-1.6B" \ | ||
| --full \ | ||
| --use_redis \ | ||
| # --cross_encoder_models "gemini/text-embedding-001" \ | ||
| # --rerank_k 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,100 @@ | ||
| uv run evaluation.py \ | ||
| --query_log_path ./dataset/queries.csv \ | ||
| --cache_path ./dataset/cache.csv \ | ||
| --sentence_column text \ | ||
| --output_dir ./outputs \ | ||
| --n_samples 100 \ | ||
| --model_name "redis/langcache-embed-v3.1" | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path ./dataset/queries.csv \ | ||
| --cache_path ./dataset/cache.csv \ | ||
| --sentence_column text \ | ||
| --output_dir ./outputs \ | ||
| --n_samples 100 \ | ||
| --model_name "redis/langcache-embed-v3.1" \ | ||
| --use_redis | ||
| --query_log_path dataset/mangoes_unique_sentences.csv \ | ||
| --sentence_column sentence \ | ||
| --output_dir ./mangoes/v2 \ | ||
| --n_samples 1000 \ | ||
| --model_name "redis/langcache-embed-v2" \ | ||
| --full \ | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path ./dataset/queries.csv \ | ||
| --cache_path ./dataset/cache.csv \ | ||
| --sentence_column text \ | ||
| --output_dir ./outputs \ | ||
| --n_samples 100 \ | ||
| --model_name "redis/langcache-embed-v3.1" \ | ||
| --full | ||
| --query_log_path dataset/mangoes_unique_sentences.csv \ | ||
| --sentence_column sentence \ | ||
| --output_dir ./mangoes/v3 \ | ||
| --n_samples 1000 \ | ||
| --model_name "redis/langcache-embed-v3" \ | ||
| --full \ | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path ./dataset/queries.csv \ | ||
| --cache_path ./dataset/cache.csv \ | ||
| --sentence_column text \ | ||
| --output_dir ./outputs \ | ||
| --n_samples 100 \ | ||
| --query_log_path dataset/mangoes_unique_sentences.csv \ | ||
| --sentence_column sentence \ | ||
| --output_dir ./mangoes/v3.1 \ | ||
| --n_samples 1000 \ | ||
| --model_name "redis/langcache-embed-v3.1" \ | ||
| --full \ | ||
| --use_redis | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path ./dataset/chatgpt.csv \ | ||
| --sentence_column sentence2 \ | ||
| --output_dir ./outputs \ | ||
| --n_samples 20 \ | ||
| --query_log_path dataset/mangoes_unique_sentences.csv \ | ||
| --sentence_column sentence \ | ||
| --output_dir ./mangoes/v1 \ | ||
| --n_samples 1000 \ | ||
| --model_name "redis/langcache-embed-v1" \ | ||
| --full | ||
|
|
||
|
|
||
| # ================================ | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path dataset/chatgpt_unique_sentences.csv \ | ||
| --sentence_column sentence \ | ||
| --output_dir ./rado_synthetic/v1 \ | ||
| --n_samples 500 \ | ||
| --model_name "redis/langcache-embed-v1" \ | ||
| --full | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path dataset/chatgpt_unique_sentences.csv \ | ||
| --sentence_column sentence \ | ||
| --output_dir ./rado_synthetic/v2 \ | ||
| --n_samples 500 \ | ||
| --model_name "redis/langcache-embed-v2" \ | ||
| --full | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path dataset/chatgpt_unique_sentences.csv \ | ||
| --sentence_column sentence \ | ||
| --output_dir ./rado_synthetic/v3 \ | ||
| --n_samples 500 \ | ||
| --model_name "redis/langcache-embed-v3" \ | ||
| --full | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path dataset/chatgpt_unique_sentences.csv \ | ||
| --sentence_column sentence \ | ||
| --output_dir ./rado_synthetic/v3.1 \ | ||
| --n_samples 500 \ | ||
| --model_name "redis/langcache-embed-v3.1" \ | ||
| --full \ | ||
| --use_redis | ||
| --full | ||
|
|
||
| # ================================ | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path dataset/vizio_unique_sentences.csv \ | ||
| --sentence_column transcription \ | ||
| --output_dir ./vizio/v1 \ | ||
| --n_samples 1000 \ | ||
| --model_name "redis/langcache-embed-v1" \ | ||
| --full | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path dataset/vizio_unique_sentences.csv \ | ||
| --sentence_column transcription \ | ||
| --output_dir ./vizio/v2 \ | ||
| --n_samples 1000 \ | ||
| --model_name "redis/langcache-embed-v2" \ | ||
| --full | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path dataset/vizio_unique_sentences.csv \ | ||
| --sentence_column transcription \ | ||
| --output_dir ./vizio/v3 \ | ||
| --n_samples 1000 \ | ||
| --model_name "redis/langcache-embed-v3" \ | ||
| --full | ||
|
|
||
| uv run evaluation.py \ | ||
| --query_log_path dataset/vizio_unique_sentences.csv \ | ||
| --sentence_column transcription \ | ||
| --output_dir ./vizio/v3.1 \ | ||
| --n_samples 1000 \ | ||
| --model_name "redis/langcache-embed-v3.1" \ | ||
| --full |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Empty UV index URL breaks package installation
High Severity
The
[[tool.uv.index]]URL is set to an empty string""instead of being removed entirely. An empty URL is not a valid package index URL and will causeuvto fail when attempting to resolve or install packages from this index. The section should either be removed completely or contain a valid URL.