Skip to content

Commit

Permalink
added cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
sreyakumar committed Nov 21, 2024
1 parent 15f586f commit f71065b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ umap_visualization.py

# Byte-compiled / optimized / DLL files
__pycache__/
huggingface_cache/
*.py[cod]
*$py.class

Expand Down
3 changes: 2 additions & 1 deletion src/metadata_chatbot/agents/docdb_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
hf = HuggingFaceEmbeddings(
model_name=model_name,
model_kwargs=model_kwargs,
encode_kwargs=encode_kwargs
encode_kwargs=encode_kwargs,
cache_folder="/scratch/huggingface_cache"
)

BEDROCK_CLIENT = boto3.client(
Expand Down

0 comments on commit f71065b

Please sign in to comment.