Skip to content

Commit

Permalink
🐛 fix cache failure: move to root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mickm3n committed Aug 10, 2024
1 parent f5619ed commit 0134cd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/compute-embedding-and-find-similarity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ jobs:
- name: Cache embeddings
uses: actions/cache@v4
with:
path: data/post_embedding_cache.pkl
path: post_embedding_cache.pkl
key: embeddings-cache-${{ hashFiles('content/**/*.md') }}
restore-keys: |
embeddings-cache-
embeddings-cache
- name: Compute embedding and find similarity
run: python scripts/find_similar_posts.py
Expand Down
2 changes: 1 addition & 1 deletion scripts/find_similar_posts.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def get_embedding(self, text, model=EMBEDDING_MODEL):


class EmbeddingRepository:
EMBEDDING_CACHE_PATH = "data/post_embedding_cache.pkl"
EMBEDDING_CACHE_PATH = "post_embedding_cache.pkl"

def __init__(self, embedding_provider):
self.embedding_provider = embedding_provider
Expand Down

0 comments on commit 0134cd0

Please sign in to comment.