Skip to content

Commit

Permalink
add the full docs too
Browse files Browse the repository at this point in the history
  • Loading branch information
wjayesh committed Jan 6, 2025
1 parent 50de6a7 commit 80a1acb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docs_summarization_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,29 +57,31 @@ jobs:
- name: Process batch results and upload to HuggingFace
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: |
# Process OpenAI batch results
python scripts/check_batch_output.py
# Upload all files to HuggingFace
python -c '
from huggingface_hub import HfApi
import os
api = HfApi()
# Upload OpenAI summary
api.upload_file(
token="${{ secrets.HF_TOKEN }}",
token=os.environ["HF_TOKEN"],
repo_id="zenml/llms.txt",
repo_type="dataset",
path_in_repo="how-to-guides.txt",
path_or_fileobj="zenml_docs.txt",
)
# Upload repomix outputs
for filename in ["component-guide.txt", "basics.txt"]:
for filename in ["component-guide.txt", "basics.txt", "llms-full.txt"]:
api.upload_file(
token="${{ secrets.HF_TOKEN }}",
token=os.environ["HF_TOKEN"],
repo_id="zenml/llms.txt",
repo_type="dataset",
path_in_repo=filename,
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docs_summarization_submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
# Create directory for outputs
mkdir -p repomix-outputs
# Full docs
repomix --include "docs/book/**/*.md"
mv repomix-output.txt repomix-outputs/llms-full.txt
# Component guide
repomix --include "docs/book/component-guide/**/*.md"
mv repomix-output.txt repomix-outputs/component-guide.txt
Expand Down

0 comments on commit 80a1acb

Please sign in to comment.