Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
branches:
- main
- release/*

permissions:
id-token: write
Expand Down Expand Up @@ -81,7 +82,7 @@ jobs:
path: /tmp/image.tar

docker-push:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/')) }}
needs: docker-build
runs-on: ubuntu-latest

Expand Down
63 changes: 49 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/data_generation/reactome/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ def upload_to_chromadb(
embeddings_instance: Embeddings
if hf_model is None: # Use OpenAI
embeddings_instance = OpenAIEmbeddings(
chunk_size=500,
chunk_size=400,
show_progress_bar=True,
)
elif hf_model.startswith("openai/text-embedding-"):
embeddings_instance = OpenAIEmbeddings(
model=hf_model[len("openai/") :],
chunk_size=500,
chunk_size=400,
show_progress_bar=True,
)
elif "HUGGINGFACEHUB_API_TOKEN" in os.environ:
Expand Down
4 changes: 2 additions & 2 deletions src/data_generation/uniprot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ def upload_to_chromadb(
print("Using OpenAI embeddings")
embeddings_instance = OpenAIEmbeddings(
model="text-embedding-3-large",
chunk_size=800,
chunk_size=500,
show_progress_bar=True,
)
elif hf_model.startswith("openai/text-embedding-"):
embeddings_instance = OpenAIEmbeddings(
model=hf_model[len("openai/") :],
chunk_size=800,
chunk_size=500,
show_progress_bar=True,
)
elif "HUGGINGFACEHUB_API_TOKEN" in os.environ:
Expand Down
Loading