Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Alleria1809 committed Jun 30, 2024
1 parent 7d16121 commit ba824a7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,24 @@ jobs:
poetry config virtualenvs.create false
poetry install
- name: List installed packages
run: |
poetry run pip list
- name: Print Sphinx version
run: |
poetry run sphinx-build --version
- name: Build documentation
run: |
sphinx-build -b html ./docs/source/ ./docs/build/ -v
ls -l ./docs/build/ # List output files for debugging
echo "Python path before Sphinx build: $PYTHONPATH"
poetry run sphinx-build -b html ./docs/source/ ./docs/build/ -vvv
echo "Listing built documentation:"
ls -l ./docs/build/
- name: Create .nojekyll file
run: touch ./docs/build/.nojekyll
run: |
touch ./docs/build/.nojekyll
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
Expand Down
3 changes: 1 addition & 2 deletions lightrag/components/data_process/text_splitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ def __init__(
super().__init__()

self.split_by = split_by
options = ", ".join(f"'{key}'" for key in SEPARATORS.keys())
assert split_by in SEPARATORS, f"Invalid options for split_by. You must select from {options}."
assert split_by in SEPARATORS, f"Invalid options for split_by. You must select from {list(SEPARATORS.keys())}."

assert chunk_overlap < chunk_size, f"chunk_overlap can't be larger than or equal to chunk_size. Received chunk_size: {chunk_size}, chunk_overlap: {chunk_overlap}"

Expand Down

0 comments on commit ba824a7

Please sign in to comment.