Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update textsplitter & fix documents #52

Merged
merged 66 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
2ff03e4
update
Alleria1809 Jun 25, 2024
ef04d55
Merge remote-tracking branch 'origin/main' into xiaoyi_doc
Alleria1809 Jun 25, 2024
c33cd9a
update
Alleria1809 Jun 26, 2024
c655254
improve text splitter and model client
Alleria1809 Jun 27, 2024
d446177
control the github actions
Alleria1809 Jun 27, 2024
75e44e8
Merge remote-tracking branch 'origin/main' into xiaoyi_doc
Alleria1809 Jun 27, 2024
789daca
remove the doc file
Alleria1809 Jun 27, 2024
b174048
test docs
Alleria1809 Jun 28, 2024
47e93d8
add dependencies to support notebook
Alleria1809 Jun 28, 2024
743cb6a
update the action flow
Alleria1809 Jun 28, 2024
3f2040d
update python version
Alleria1809 Jun 28, 2024
07b90d4
update python version
Alleria1809 Jun 28, 2024
6e10aa9
update dependencies
Alleria1809 Jun 28, 2024
80507c3
update workflow
Alleria1809 Jun 28, 2024
60aff83
update workflow
Alleria1809 Jun 28, 2024
886501d
update workflow
Alleria1809 Jun 28, 2024
d8d2cac
update workflow
Alleria1809 Jun 28, 2024
686fc9c
update workflow
Alleria1809 Jun 28, 2024
32b1b2b
update workflow
Alleria1809 Jun 28, 2024
c7d8639
update workflow
Alleria1809 Jun 28, 2024
69da375
update workflow
Alleria1809 Jun 28, 2024
05a6c37
update workflow
Alleria1809 Jun 28, 2024
09cda8b
update workflow
Alleria1809 Jun 28, 2024
f5e7136
update workflow
Alleria1809 Jun 28, 2024
074751a
update workflow
Alleria1809 Jun 28, 2024
6ed5ca3
update the model client
Alleria1809 Jun 29, 2024
f125a28
update the workdlow
Alleria1809 Jun 29, 2024
5242d8e
update the workdlow
Alleria1809 Jun 29, 2024
6d53843
Merge pull request #54 from SylphAI-Inc/main
liyin2015 Jun 29, 2024
65950c1
document clean up
liyin2015 Jun 29, 2024
75ab0ea
home page and developer notes
liyin2015 Jun 29, 2024
b7fa9ec
Merge pull request #56 from SylphAI-Inc/li
liyin2015 Jun 29, 2024
53ec44b
add author name
liyin2015 Jun 29, 2024
aedefb5
update workflow + update code with feedback
Alleria1809 Jun 29, 2024
b98fc11
use simple version to test
Alleria1809 Jun 29, 2024
ca0605c
add workflow
Alleria1809 Jun 29, 2024
fa73a97
remove the footnote
liyin2015 Jun 29, 2024
53c8e71
Merge pull request #57 from SylphAI-Inc/li
liyin2015 Jun 29, 2024
e8d1099
make the sidebar narrower
liyin2015 Jun 29, 2024
e708fb8
update intro page, add class hierarchy visualization
liyin2015 Jun 29, 2024
7d16121
Merge pull request #58 from SylphAI-Inc/li
liyin2015 Jun 30, 2024
ba824a7
add debug
Alleria1809 Jun 30, 2024
e2b8235
fix the grammar errors on intro page
liyin2015 Jun 30, 2024
ffeb73e
debug workflow
Alleria1809 Jun 30, 2024
2e24385
make the intro into the readme of the repo
liyin2015 Jun 30, 2024
a865b1d
debug workflow
Alleria1809 Jun 30, 2024
5e5e1d8
instruction on installation
liyin2015 Jun 30, 2024
29c78c1
install instruction
liyin2015 Jun 30, 2024
30138df
install instruction
liyin2015 Jun 30, 2024
86b2334
install instruction
liyin2015 Jun 30, 2024
1260642
Merge branch 'xiaoyi_doc' into li
liyin2015 Jun 30, 2024
2a5a260
Merge pull request #59 from SylphAI-Inc/li
liyin2015 Jun 30, 2024
501a5a9
debug workflow
Alleria1809 Jun 30, 2024
d873292
debug workflow
Alleria1809 Jun 30, 2024
de8f8fe
debug workflow
Alleria1809 Jun 30, 2024
a44b117
debug workflow
Alleria1809 Jun 30, 2024
f0a461a
debug workflow
Alleria1809 Jun 30, 2024
a8231e6
debug workflow
Alleria1809 Jun 30, 2024
fc4584b
debug workflow
Alleria1809 Jun 30, 2024
bf8adf5
rm the orginal text splitter
Alleria1809 Jun 30, 2024
b655780
update the tests
Alleria1809 Jun 30, 2024
80596b1
update the tests
Alleria1809 Jun 30, 2024
49bc698
update the tests
Alleria1809 Jun 30, 2024
5a2584a
update the tests
Alleria1809 Jun 30, 2024
384a88e
update the tests
Alleria1809 Jun 30, 2024
3ff872f
fix the images
Alleria1809 Jun 30, 2024
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
52 changes: 52 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Documentation

on:
push:
branches:
- xiaoyi_doc # Ensure this is the branch where you commit documentation updates
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets create a release branch, we need to start to know how to manage different release


permissions:
contents: write
actions: read

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
pip install --upgrade pip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the api failed because it did not recognize the poetry, please use the root poetry.toml instead of pip

pip install -r ./docs/requirements.txt
pip freeze # Display installed packages for debugging

- name: Build documentation
run: |
sphinx-build -b html ./docs/source/ ./docs/build/ -v
ls -l ./docs/build/ # List output files for debugging

- name: Create .nojekyll file
run: touch ./docs/build/.nojekyll

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages # Ensure this is the branch for GitHub Pages
publish_dir: ./docs/build/
user_name: github-actions[bot] # Automated commit user name
user_email: github-actions[bot]@users.noreply.github.com

- name: Debug Output
run: |
pwd # Print the current working directory
ls -l # List files in the current directory
cat ./docs/source/conf.py # Show Sphinx config file for debugging
15 changes: 11 additions & 4 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
pydata-sphinx-theme==0.15.2
Sphinx==7.3.7
sphinx_design==0.6.0
sphinx-copybutton==0.5.2
pydata-sphinx-theme==0.15.3
sphinx-design==0.6.0
sphinx-copybutton==0.5.2
sphinx==7.3.7
nbsphinx==0.9.4
nbconvert==7.16.4
PyYAML
readthedocs-sphinx-search==0.3.2
numpy
tqdm
tiktoken
10 changes: 9 additions & 1 deletion docs/source/apis/components/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ Overview

components.agent
components.model_client
components.data_process

.. components.reasoning

components.retriever
components.output_parsers

Expand All @@ -37,6 +38,13 @@ Model Clients

components.model_client

Data Process
----------------
.. toctree::
:maxdepth: 1

components.data_process

.. Embedders
.. ---------
.. .. toctree::
Expand Down
17 changes: 6 additions & 11 deletions docs/source/apis/core/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,19 @@ Overview
----------
.. autosummary::

core.base_data_class
core.model_client
core.base_data_class
core.component
core.data_components
core.db
core.default_prompt_template
core.document_splitter
core.embedder
core.functional
core.generator
core.memory
core.model_client
core.parameter
core.prompt_builder
core.retriever
core.string_parser
core.text_splitter
core.tokenizer
core.func_tool
core.tool_manager
Expand Down Expand Up @@ -51,8 +48,6 @@ Data Handling
core.base_data_class
core.types


core.data_components
core.db

Prompts and Templates
Expand All @@ -63,10 +58,10 @@ Prompts and Templates
core.default_prompt_template
core.prompt_builder

Document Processing
-------------------
.. toctree::
:maxdepth: 1
.. Document Processing
.. -------------------
.. .. toctree::
.. :maxdepth: 1

.. core.document_splitter
core.text_splitter
Expand Down
6 changes: 2 additions & 4 deletions docs/source/apis/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ The core section of the LightRAG API documentation provides detailed information
core.data_components
core.db
core.default_prompt_template
core.document_splitter
core.embedder
core.functional
core.generator
Expand All @@ -26,7 +25,6 @@ The core section of the LightRAG API documentation provides detailed information
core.prompt_builder
core.retriever
core.string_parser
core.text_splitter
core.tokenizer
core.func_tool
core.tool_manager
Expand All @@ -42,9 +40,9 @@ The components section of the LightRAG API documentation outlines the detailed s

components.agent
components.model_client

componnets.data_process
.. components.reasoning

components.retriever
components.output_parsers

Expand Down
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
copyright = "2024, SylphAI"
author = "SylphAI"


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
Expand Down
Loading
Loading