Skip to content

Commit

Permalink
iter
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre committed Apr 17, 2024
1 parent 9e43fb4 commit 402b127
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions scripts/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,6 @@
# Parameters for the scraper
CHUNK_SIZE = 1_500
CHUNK_OVERLAP = 10

# Sentence transformer model
SENTENCE_TRANSFORMER_MODEL = "thenlper/gte-large"
6 changes: 3 additions & 3 deletions scripts/train_retrievers.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
from ragger_duck.scraping import APINumPyDocExtractor

embedding = SentenceTransformer(
model_name_or_path="thenlper/gte-large",
model_name_or_path=config.SENTENCE_TRANSFORMER_MODEL,
cache_folder=config.CACHE_PATH,
device=DEVICE,
)
Expand Down Expand Up @@ -91,7 +91,7 @@
from ragger_duck.scraping import UserGuideDocExtractor

embedding = SentenceTransformer(
model_name_or_path="thenlper/gte-large",
model_name_or_path=config.SENTENCE_TRANSFORMER_MODEL,
cache_folder=config.CACHE_PATH,
device=DEVICE,
)
Expand Down Expand Up @@ -148,7 +148,7 @@
from ragger_duck.scraping import GalleryExampleExtractor

embedding = SentenceTransformer(
model_name_or_path="thenlper/gte-large",
model_name_or_path=config.SENTENCE_TRANSFORMER_MODEL,
cache_folder=config.CACHE_PATH,
device=DEVICE,
)
Expand Down

0 comments on commit 402b127

Please sign in to comment.