Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
436 commits
Select commit Hold shift + click to select a range
0d32730
report fix
Nov 2, 2024
fa49d66
Merge pull request #3 from martynov-dm/martynov_graph_gen
NotBioWaste905 Nov 4, 2024
6de24f5
Merge pull request #3 from martynov-dm/martynov_graph_gen
NotBioWaste905 Nov 4, 2024
07b083e
First attempts on automatic metrics gathering
NotBioWaste905 Nov 5, 2024
19ae198
First attempts on automatic metrics gathering
NotBioWaste905 Nov 5, 2024
ad3a5e1
lint
NotBioWaste905 Nov 5, 2024
0249f2c
lint
NotBioWaste905 Nov 5, 2024
b095ee7
Updating contributing
NotBioWaste905 Nov 6, 2024
c12b819
Updating contributing
NotBioWaste905 Nov 6, 2024
33b66fe
metrics
NotBioWaste905 Nov 6, 2024
ad08d18
metrics
NotBioWaste905 Nov 6, 2024
9aabe30
updated evaluate.py
NotBioWaste905 Nov 6, 2024
40696b2
updated evaluate.py
NotBioWaste905 Nov 6, 2024
de6ee20
fixed evaluate.py
NotBioWaste905 Nov 6, 2024
66c3826
fixed evaluate.py
NotBioWaste905 Nov 6, 2024
25da331
Moved algorithms to the algorithms folder, renamed algorithms.py to b…
NotBioWaste905 Nov 6, 2024
8b3409d
Moved algorithms to the algorithms folder, renamed algorithms.py to b…
NotBioWaste905 Nov 6, 2024
df82bf2
Working on autometrics
NotBioWaste905 Nov 8, 2024
7c543fb
Working on autometrics
NotBioWaste905 Nov 8, 2024
a8f00a9
Added github workflow
NotBioWaste905 Nov 8, 2024
bf64337
Added github workflow
NotBioWaste905 Nov 8, 2024
b786803
Fixed workflow naming
NotBioWaste905 Nov 8, 2024
cd8f2e5
Fixed workflow naming
NotBioWaste905 Nov 8, 2024
00c77f9
Fixed are_triplets_valid metric
NotBioWaste905 Nov 8, 2024
57ff13e
Fixed are_triplets_valid metric
NotBioWaste905 Nov 8, 2024
64c0a5f
LLM metrics done, working on test cases
NotBioWaste905 Nov 8, 2024
27e7d1b
LLM metrics done, working on test cases
NotBioWaste905 Nov 8, 2024
1539f3d
added schemas and base classes for algos
Nov 9, 2024
b653910
added schemas and base classes for algos
Nov 9, 2024
fde1e4c
small fixes
Nov 9, 2024
02bb889
small fixes
Nov 9, 2024
3742020
added dialogue augmentation
Nov 9, 2024
24edc93
added dialogue augmentation
Nov 9, 2024
6d89680
format
Nov 9, 2024
6b7747b
format
Nov 9, 2024
2e57a3c
format
Nov 9, 2024
66276f1
format
Nov 9, 2024
6dd403a
Fixed autometrics
NotBioWaste905 Nov 11, 2024
3b45498
Fixed autometrics
NotBioWaste905 Nov 11, 2024
75ec015
small fixes
Nov 11, 2024
27c4b55
small fixes
Nov 11, 2024
4587993
small fixes
Nov 11, 2024
6928ffa
small fixes
Nov 11, 2024
e7aa17f
Added some cases for dialogue2dialogue, topic_to_graph
NotBioWaste905 Nov 11, 2024
e87402e
Added some cases for dialogue2dialogue, topic_to_graph
NotBioWaste905 Nov 11, 2024
df2fdf4
Merge pull request #4 from martynov-dm/martynov_cycle_graph_integration
NotBioWaste905 Nov 12, 2024
f330785
Merge pull request #4 from martynov-dm/martynov_cycle_graph_integration
NotBioWaste905 Nov 12, 2024
1e180a2
Fixed typo
NotBioWaste905 Nov 12, 2024
89016f0
Fixed typo
NotBioWaste905 Nov 12, 2024
a52289d
Fixed missing field
NotBioWaste905 Nov 12, 2024
b2f7170
Fixed missing field
NotBioWaste905 Nov 12, 2024
e82e736
Fixed compatibility of new signatures with old autometrics
NotBioWaste905 Nov 13, 2024
aa34126
Fixed compatibility of new signatures with old autometrics
NotBioWaste905 Nov 13, 2024
b363021
Fixes
NotBioWaste905 Nov 13, 2024
50b44bb
Fixes
NotBioWaste905 Nov 13, 2024
331f1be
Fixed metrics naming
NotBioWaste905 Nov 13, 2024
2b2a9ba
Fixed metrics naming
NotBioWaste905 Nov 13, 2024
28a254d
Fixed DialogueSampler
NotBioWaste905 Nov 13, 2024
95895dd
Fixed DialogueSampler
NotBioWaste905 Nov 13, 2024
b44d39b
Added test.ipynb to .gitignore
NotBioWaste905 Nov 18, 2024
0a01986
Added test.ipynb to .gitignore
NotBioWaste905 Nov 18, 2024
ff00103
Started working on appending branches to existing graph
NotBioWaste905 Nov 18, 2024
6760bcc
Started working on appending branches to existing graph
NotBioWaste905 Nov 18, 2024
8f5e5ee
fix
Nov 24, 2024
24d067d
fix
Nov 24, 2024
07dc938
Fixed DilogueAugmentator
NotBioWaste905 Nov 25, 2024
608ed27
Fixed DilogueAugmentator
NotBioWaste905 Nov 25, 2024
05d7105
Merge branch 'dev' of https://github.com/deeppavlov/chatsky-llm-autoc…
NotBioWaste905 Nov 25, 2024
94f29c6
Merge branch 'dev' of https://github.com/deeppavlov/chatsky-llm-autoc…
NotBioWaste905 Nov 25, 2024
18de14a
Merge branch 'dev' of github.com:deeppavlov/chatsky-llm-autoconfig in…
Nov 25, 2024
6de9239
Merge branch 'dev' of github.com:deeppavlov/chatsky-llm-autoconfig in…
Nov 25, 2024
4c05d3a
fix
Nov 25, 2024
26e067c
fix
Nov 25, 2024
4090ffe
stopped on testing
Nov 27, 2024
055514b
stopped on testing
Nov 27, 2024
1d0c3a0
Removed merge artifacts
NotBioWaste905 Dec 2, 2024
5b4f907
Removed merge artifacts
NotBioWaste905 Dec 2, 2024
0b2b6d5
experiment fixes
NotBioWaste905 Dec 2, 2024
ef9c5d8
experiment fixes
NotBioWaste905 Dec 2, 2024
8effde5
Added some negative examples
NotBioWaste905 Dec 2, 2024
7ddf34f
Added some negative examples
NotBioWaste905 Dec 2, 2024
4b35d23
Updated README.md
NotBioWaste905 Dec 2, 2024
facb932
Updated README.md
NotBioWaste905 Dec 2, 2024
fa87b9d
working on testing funcs
Dec 2, 2024
31c3154
working on testing funcs
Dec 2, 2024
b2124f0
Disabled all_paths_sampled metrics for now
NotBioWaste905 Dec 4, 2024
cdfc3e1
Disabled all_paths_sampled metrics for now
NotBioWaste905 Dec 4, 2024
b5faa35
added report added new func to lib
Dec 6, 2024
75e9af0
added report added new func to lib
Dec 6, 2024
bd5e555
Merge branch 'dev' of github.com:deeppavlov/chatsky-llm-autoconfig in…
Dec 6, 2024
ed5659c
Merge branch 'dev' of github.com:deeppavlov/chatsky-llm-autoconfig in…
Dec 6, 2024
d541c86
format
Dec 6, 2024
13c8158
format
Dec 6, 2024
94c045c
Fixed dialogue in test data
NotBioWaste905 Dec 6, 2024
e92fef3
Fixed dialogue in test data
NotBioWaste905 Dec 6, 2024
24b2736
lint
NotBioWaste905 Dec 6, 2024
d8e60a1
lint
NotBioWaste905 Dec 6, 2024
641f3fe
Forbid python-3.12 due to pytorch issues
NotBioWaste905 Dec 6, 2024
eb4e0bf
Forbid python-3.12 due to pytorch issues
NotBioWaste905 Dec 6, 2024
8115acb
Forbid python 3.12
NotBioWaste905 Dec 6, 2024
6999c97
Forbid python 3.12
NotBioWaste905 Dec 6, 2024
5e77cef
Merge pull request #10 from martynov-dm/martynov_triplet_check_improv…
NotBioWaste905 Dec 10, 2024
fdd8852
Merge pull request #10 from martynov-dm/martynov_triplet_check_improv…
NotBioWaste905 Dec 10, 2024
841aa11
Small fix in autometrics
NotBioWaste905 Dec 10, 2024
45563c3
Small fix in autometrics
NotBioWaste905 Dec 10, 2024
c250bd3
Minor codestyle tweaks
NotBioWaste905 Dec 10, 2024
2f080b5
Minor codestyle tweaks
NotBioWaste905 Dec 10, 2024
17a7169
Merge pull request #12 from deeppavlov/feat/improved_triplet-check
NotBioWaste905 Dec 10, 2024
d8daaf9
Merge pull request #12 from deeppavlov/feat/improved_triplet-check
NotBioWaste905 Dec 10, 2024
cfd1a9f
lint
NotBioWaste905 Dec 10, 2024
094737c
lint
NotBioWaste905 Dec 10, 2024
c84e334
Fixed graph/dialogue mismatch
NotBioWaste905 Dec 12, 2024
c8ea070
Fixed graph/dialogue mismatch
NotBioWaste905 Dec 12, 2024
939ffb4
Add DialoguePathSampler class for generating dialogue paths from a graph
NotBioWaste905 Dec 13, 2024
237a0e7
Add DialoguePathSampler class for generating dialogue paths from a graph
NotBioWaste905 Dec 13, 2024
ac9bfd7
Add complex graph and visualization notebook for dialogue generation …
NotBioWaste905 Dec 13, 2024
2c5a25e
Add complex graph and visualization notebook for dialogue generation …
NotBioWaste905 Dec 13, 2024
5bbffcc
working on complex graph generation
Dec 14, 2024
20527d7
working on complex graph generation
Dec 14, 2024
b91f15c
working on graph gen
Dec 15, 2024
85acc47
working on graph gen
Dec 15, 2024
6209001
finished prod graph gen
Dec 15, 2024
2ae1fe7
finished prod graph gen
Dec 15, 2024
f5ea16c
finished
Dec 17, 2024
558be5f
finished
Dec 17, 2024
f4b33f5
finished
Dec 18, 2024
331ab7a
finished
Dec 18, 2024
b55715a
Updated python version in github actions
NotBioWaste905 Dec 23, 2024
93a8aba
Updated python version in github actions
NotBioWaste905 Dec 23, 2024
2a3ecd1
Experiments in visualizing and sampling complex graphs
NotBioWaste905 Dec 23, 2024
b7f618f
Experiments in visualizing and sampling complex graphs
NotBioWaste905 Dec 23, 2024
287d4ee
Addressing python version issues
NotBioWaste905 Dec 23, 2024
0e05fb1
Addressing python version issues
NotBioWaste905 Dec 23, 2024
3ce974a
Merge pull request #13 from martynov-dm/martynov_complex_graph_gen
NotBioWaste905 Dec 23, 2024
bd6090f
Merge pull request #13 from martynov-dm/martynov_complex_graph_gen
NotBioWaste905 Dec 23, 2024
4bf1252
Data scoring and formatting, minor lint tweaks
NotBioWaste905 Jan 13, 2025
92ade8e
Data scoring and formatting, minor lint tweaks
NotBioWaste905 Jan 13, 2025
25612a0
Enhance Dialogue class with validation and initialization logic; upda…
NotBioWaste905 Jan 20, 2025
2b93bda
Enhance Dialogue class with validation and initialization logic; upda…
NotBioWaste905 Jan 20, 2025
e104407
Working on fixing the sampler, added validation to the Dialogue class
NotBioWaste905 Jan 20, 2025
70a1399
Working on fixing the sampler, added validation to the Dialogue class
NotBioWaste905 Jan 20, 2025
aa51fce
Fix merge issues
NotBioWaste905 Jan 20, 2025
8ccd968
Fix merge issues
NotBioWaste905 Jan 20, 2025
c73b43a
Added from_nodes_ids to Dialogue, added nodes_by_utterance, edges_by_…
NotBioWaste905 Jan 23, 2025
6d52838
Added from_nodes_ids to Dialogue, added nodes_by_utterance, edges_by_…
NotBioWaste905 Jan 23, 2025
c07ac04
Added RecursiveDialogueSampler
NotBioWaste905 Jan 23, 2025
5ef5ed7
Added RecursiveDialogueSampler
NotBioWaste905 Jan 23, 2025
a4b537f
Quickfix of RecursiveDialogueSampler
NotBioWaste905 Jan 23, 2025
699b382
Quickfix of RecursiveDialogueSampler
NotBioWaste905 Jan 23, 2025
be7fcd4
Update README.md
NotBioWaste905 Jan 25, 2025
7d17f99
Update README.md
NotBioWaste905 Jan 25, 2025
192cbbd
Experiments and updates on recursive sampler and LoopedGraphGenerator
NotBioWaste905 Jan 30, 2025
72e0139
Experiments and updates on recursive sampler and LoopedGraphGenerator
NotBioWaste905 Jan 30, 2025
11ae43b
Merge remote-tracking branch 'origin/dev' into dev
NotBioWaste905 Jan 30, 2025
0b2a76b
Merge remote-tracking branch 'origin/dev' into dev
NotBioWaste905 Jan 30, 2025
5b41cc5
Fix sampler invocation
NotBioWaste905 Jan 30, 2025
1964bc0
Fix sampler invocation
NotBioWaste905 Jan 30, 2025
0c7c3b2
Removed unused reference
NotBioWaste905 Jan 30, 2025
0df934c
Removed unused reference
NotBioWaste905 Jan 30, 2025
65bb7ca
Switched to PydanticOutputParser in CycleGraphGenerator
NotBioWaste905 Feb 3, 2025
15ac0ab
Switched to PydanticOutputParser in CycleGraphGenerator
NotBioWaste905 Feb 3, 2025
42c685a
Removed graph_validation, added return_type flag to are_triplets_vali…
NotBioWaste905 Feb 3, 2025
a02b6d3
Removed graph_validation, added return_type flag to are_triplets_vali…
NotBioWaste905 Feb 3, 2025
82ad9a4
lint
NotBioWaste905 Feb 3, 2025
e30e865
lint
NotBioWaste905 Feb 3, 2025
279a201
Remove test files: test_classes.py and test.ipynb
NotBioWaste905 Feb 3, 2025
03a4237
Remove test files: test_classes.py and test.ipynb
NotBioWaste905 Feb 3, 2025
8d07719
Fixed broken imports
NotBioWaste905 Feb 5, 2025
cd9b920
Fixed broken imports
NotBioWaste905 Feb 5, 2025
4b367b7
New repository structure and refactoring (#17)
NotBioWaste905 Feb 21, 2025
5cea5a2
Quickfix for filenaming
NotBioWaste905 Feb 26, 2025
d3b52ce
Quickfix: removed unused use_cache, added missing model_dump()
NotBioWaste905 Feb 28, 2025
a83f0ff
lint
NotBioWaste905 Feb 28, 2025
7808527
Added missing scipy package
NotBioWaste905 Feb 28, 2025
7923a4d
New example and other improvements
NotBioWaste905 Feb 28, 2025
cdb36bd
lint
NotBioWaste905 Feb 28, 2025
f93c4e2
Feat/prompt caching (#18)
NotBioWaste905 Mar 3, 2025
f251687
Removed .pyc files
NotBioWaste905 Mar 3, 2025
d6a0432
dev merged
Mar 7, 2025
28f3afc
Formatting improvements
NotBioWaste905 Mar 7, 2025
3635d54
Merge remote-tracking branch 'origin/dev' into dev
NotBioWaste905 Mar 7, 2025
8676a0d
Revert "Merge remote-tracking branch 'origin/dev' into dev"
NotBioWaste905 Mar 7, 2025
8e10f2d
Update READMEs (#22)
anna-a-m Mar 7, 2025
1ed53e4
Add usage examples (#20)
anna-a-m Mar 10, 2025
14d0ff3
Added caching hint into the example
NotBioWaste905 Mar 12, 2025
0002d27
Merge remote-tracking branch 'origin/dev' into dev
NotBioWaste905 Mar 12, 2025
d1b18e5
Renamed and updated example
NotBioWaste905 Mar 12, 2025
47496e1
load_real_datasets (#25)
yupesh Mar 12, 2025
08b0ae6
if seed is not set no cache will be used
NotBioWaste905 Mar 13, 2025
395fdb8
Merge remote-tracking branch 'origin/dev' into dev
NotBioWaste905 Mar 13, 2025
c6aca68
poetry.lock update
NotBioWaste905 Mar 13, 2025
3077777
Removed Dialogue class duplicate
NotBioWaste905 Mar 13, 2025
b390442
lint
NotBioWaste905 Mar 13, 2025
934be2e
First try in cli interface
NotBioWaste905 Mar 13, 2025
03d5847
Lint
NotBioWaste905 Mar 13, 2025
d9c1512
Added YAML support, added an example
NotBioWaste905 Mar 19, 2025
8f96d55
push dataset to hub (#24)
yupesh Mar 19, 2025
4a97895
added all_utterances_present, compare_graphs metrics, and new graph m…
yupesh Mar 19, 2025
f474f5f
Made .env optional, added graphviz warning
NotBioWaste905 Mar 19, 2025
28b356f
Added note about PyGraphviz installation into a README
NotBioWaste905 Mar 19, 2025
11e2fc9
lint
NotBioWaste905 Mar 19, 2025
d7e0c9b
Added pygraphviz to the dependencies
NotBioWaste905 Mar 19, 2025
6f2148b
Revert "Added pygraphviz to the dependencies"
NotBioWaste905 Mar 19, 2025
2417343
updating codestyle workflow to work with graphviz
NotBioWaste905 Mar 19, 2025
a3244a6
Revert "updating codestyle workflow to work with graphviz"
NotBioWaste905 Mar 19, 2025
22ba8de
Update documentation (#30)
anna-a-m Mar 21, 2025
1ad32e2
Added simple pipeline and it's showcase
NotBioWaste905 Mar 21, 2025
6b5d1e8
Removed unused env settings
NotBioWaste905 Mar 21, 2025
767fa69
Graph incrementation on data sample (#34)
dariaolshevskaya Mar 21, 2025
18ace13
Working on github pages
NotBioWaste905 Mar 24, 2025
ec93bd7
Removed showcase
NotBioWaste905 Mar 26, 2025
7c83756
Merge branch 'feat/cli_interface' into dev
NotBioWaste905 Mar 26, 2025
244580e
lock update
NotBioWaste905 Mar 26, 2025
5c0abe3
Fix/automatic metrics (#37)
mary-silence Mar 26, 2025
754ddc0
Feat/user pipeline (#38)
yupesh Mar 27, 2025
f009109
renamed GitHub Actions workflow for building and publishing documenta…
NotBioWaste905 Mar 28, 2025
d682885
updated poetry.lock
NotBioWaste905 Mar 28, 2025
8866569
Fixed link to the docs in workflow, added jekyll theming
NotBioWaste905 Mar 28, 2025
e3bc15f
Remove commented-out step for Jekyll theming in documentation build w…
NotBioWaste905 Mar 28, 2025
9681efb
Fixing theming for github pages
NotBioWaste905 Mar 28, 2025
febc53d
Switched to "alabaster" theme
NotBioWaste905 Mar 28, 2025
96bcb0e
Specified static path
NotBioWaste905 Mar 28, 2025
88a7131
Add documentation build enhancements
NotBioWaste905 Mar 28, 2025
71e5447
Update documentation dependencies and configurations
NotBioWaste905 Mar 28, 2025
fc945ee
Updated poetry.lock
NotBioWaste905 Mar 28, 2025
fb8a74a
Removed .nojekyll, added separate folder for master
NotBioWaste905 Mar 31, 2025
93bd367
poetry lock update
NotBioWaste905 Mar 31, 2025
9751a1d
ModelStorage (#41)
NotBioWaste905 Apr 2, 2025
3be0bb2
rename chatsky-llm-autoconfig to Dialogue2Graph
NotBioWaste905 Apr 2, 2025
e4ecb7a
Update import path in README for Graph class
NotBioWaste905 Apr 2, 2025
088e1ae
clarify pygraphviz installation process
NotBioWaste905 Apr 2, 2025
d827821
fix ModelStorage save/load
NotBioWaste905 Apr 4, 2025
3387779
fix: update model configuration keys in documentation and example not…
NotBioWaste905 Apr 7, 2025
73eef0f
Switch linter from black/flake to ruff (#44)
NotBioWaste905 Apr 7, 2025
1402764
add: exp2025_03_12_rec_models_incrementation (#39)
dariaolshevskaya Apr 7, 2025
111c7e6
Validators to detect start loops (#43)
anna-a-m Apr 7, 2025
3fba8ea
Synthetic dialogue augmentation (#40)
dariaolshevskaya Apr 10, 2025
e3ae051
Bump notebook from 7.0.7 to 7.2.2 (#46)
dependabot[bot] Apr 10, 2025
907ae34
Evaluation added (#42)
yupesh Apr 16, 2025
a969717
add: include 'dist' directory in .gitignore
NotBioWaste905 Apr 16, 2025
8f15216
remove unused dependencies
NotBioWaste905 Apr 16, 2025
ee2637f
remove datasets and scipy, update dependencies
NotBioWaste905 Apr 16, 2025
061695a
fix: update documentation link in workflow
NotBioWaste905 Apr 17, 2025
256ac1f
Dialogue Augmentation (#49)
dariaolshevskaya Apr 17, 2025
68f412b
Add docstrings and remove unused modules (#51)
NotBioWaste905 Apr 18, 2025
bdd0776
Autoapi for autogenerating docs (#47)
anna-a-m Apr 18, 2025
1031855
V0.1.0 mvp (#50)
NotBioWaste905 Apr 21, 2025
c61940a
Authors update, docs link fix
NotBioWaste905 Apr 21, 2025
27240ac
Fix authors' email formatting in pyproject.toml
NotBioWaste905 Apr 21, 2025
a6bd23d
Fix incorrect link in user guides to point to generate_graphs
NotBioWaste905 Apr 21, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: set up python 3.9
- name: set up python '3.11'
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.11'

- uses: r-lib/actions/setup-pandoc@v2
with:
Expand All @@ -35,16 +35,21 @@ jobs:
run: |
python -m pip install --upgrade pip poetry
python -m poetry install --with docs --all-extras --no-ansi --no-interaction
# Explicitly install theme and its dependencies
python -m poetry run pip install pydata-sphinx-theme sphinx-copybutton

- name: build documentation
env:
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
TG_BOT_USERNAME: ${{ secrets.TG_BOT_USERNAME }}
run: |
python -m poetry run sphinx-build -M html docs/source/ docs/build/
# Force clean build
rm -rf docs/build/
python -m poetry run sphinx-build -b html -a -E docs/source/ docs/build/

- name: remove jekyll theming
run: touch docs/build/.nojekyll
- name: check build contents
run: |
echo "Checking build directory contents:"
ls -la docs/build/
echo "Checking for CSS files:"
find docs/build/ -name "*.css"

- name: save branch name without slashes
if: ${{ github.ref != 'refs/heads/master' }}
Expand All @@ -63,10 +68,26 @@ jobs:
path: docs/build/
retention-days: 3

- name: deploy website
- name: deploy website for master
if: ${{ github.ref == 'refs/heads/master' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/build/
single-commit: True
target-folder: master # Deploy to root for master branch
single-commit: false
clean: True

- name: deploy website for dev
if: ${{ github.ref == 'refs/heads/dev' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/build/
target-folder: dev # Deploy to /dev subdirectory
single-commit: false # Keep history for dev branch
clean: True

- name: print link to the documentation
run: |
echo "https://deeppavlov.github.io/dialogue2graph/${{ github.head_ref || github.ref_name }}"
32 changes: 32 additions & 0 deletions .github/workflows/build_and_publish_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build_and_publish_release

on:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
- uses: actions/checkout@v4

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

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: false

- name: Configure Poetry
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry config http-basic.pypi __token__ ${{ secrets.PYPI_API_TOKEN }}

- name: Build and publish
run: |
poetry build
poetry publish
4 changes: 2 additions & 2 deletions .github/workflows/codestyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: set up python 3.9
- name: set up python '3.11'
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: '3.11'

- name: setup poetry and install dependencies
run: |
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: coverage

on:
push:
branches: '**'
pull_request:
branches:
- dev
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/master' }}

jobs:
test_cov_ubuntu_latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: setup poetry and install dependencies
run: |
python -m pip install --upgrade pip poetry
python -m poetry install --with tests --no-ansi --no-interaction

- name: run tests
run: |
python -m poetry run poe coverage || exit 1
51 changes: 51 additions & 0 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: test_release

on:
push:
branches: '**'
pull_request:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' }}

jobs:
test_full:
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: [macOS-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: set up python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: setup poetry and install dependencies
run: |
python -m pip install --upgrade pip poetry==1.8.4

- name: build release
run: |
python -m poetry build

- name: install and test installed package
shell: bash
run: |
python -m venv test_env
. ${GITHUB_WORKSPACE}/test_env/bin/activate || . ${GITHUB_WORKSPACE}/test_env/Scripts/activate
pip install ./dist/*.whl
pip install pytest
# Debug information
echo "Current directory: $(pwd)"
echo "Directory contents:"
ls -la
# Actually run the tests with explicit path
python -m pytest tests/ -v
33 changes: 33 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: tests

on:
push:
branches: '**'
pull_request:
branches:
- dev
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/master' }}

jobs:
test_ubuntu_latest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: setup poetry and install dependencies
run: |
python -m pip install --upgrade pip poetry
python -m poetry install --with tests --no-ansi --no-interaction

- name: run tests
run: |
python -m poetry run poe test || exit 1
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,13 @@ __pycache__
*.egg-info
*.png
*.jpg
*.jpeg
*.jpeg
.pytest_cache
.mypy_cache
test.ipynb
*.pyc
docs/build
.ruff_cache
.coverage
htmlcov
dist
91 changes: 56 additions & 35 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,71 @@
# Contributing to chatsky-llm-integration
# Contributing to Dialogue2Graph

Thank you for your interest in contributing to the dff-llm-integration project! We welcome contributions from the community to help improve and expand this Chatsky LLM-Autoconfig tool.
Thank you for your interest in contributing to the Dialogue2Graph project! We welcome contributions from the community to help improve and expand Dialogue2Graph tool.

## Getting Started

1. Create a branch for your work. Branch names should start with the goal they are created (`feat`, `fix` etc.)
2. Checkout to your branch
1. Create a branch for your work. Preferable branch prefixes are `feat`, `fix`, `exp`.
2. Switch to your branch

```bash
git checkout <your_branch_name>
```
3. Set up the development environment:

3. Set up the development environment (it is activated automatically)

```bash
poetry install --with docs,lint,tests
```
The environment will be activated automatically.

If you want to delete all the virtual environments, run
To delete all the virtual environments, run

```bash
poetry env remove --all
```

## Updating Dependencies

We use poetry.lock to ensure that all builds with the same lock file have the same 3rd-party library versions. This lets us know whether workflow fails due to our part or because a dependency update breaks something.
We use poetry as a dependency management tool. `poetry.lock` contains all dependencies for the current project. In order to update versions specified in the `poetry.lock`, run

In order to update versions specified in poetry.lock, run
```bash
poetry update
```

## How to Contribute
1. Make your changes and test hypothesis in the `./experiments` folder as it is described in **Conducting experiments** section
2. Write if needed and run the tests from the `./tests` folder via
```
poetry run pytest tests/<your_tests_directory>
```
3. Ensure linting using commands as
```
poetry run poe lint
poetry run poe format
```
4. Create a pull request with clear description of fixed and features

## Pull Request format
Please, include short description about your PR in it, give it a simple and inderstandable name.
You can always create a draft PR and request review before you request to merge it into main repository.
1. Experiment with the graphs (see the following section for a detail) or add new features to Dialogue2Graph tool

2. Check linting and try to reformat your code running

```bash
poetry run poe lint
poetry run poe format
```

3. Create a pull request

**Tips:**

- choose a proper name for your pull request,
- add clear description of new features and fixes

## Conducting experiments
Until any of the code make it way to the main repo it should be tested in `./experiments` folder.
Each of the experiments must lay in the separate folder with name like `<YYYY.MM.DD>_<experiment_name>`.
Inside of this directory must be a `report.md` file with results, metrics, future plans and other relevant information.
## Setting Experiments

**!!! Do not put images into the folder you are commiting, use GoogleDrive instead !!!**
All conducted experiments should be stored in the `./experiments` folder, each experiment saved in the separate folder and named standardly, `exp<YYYY>_<MM>_<DD>_<hypothesis>`.

To make new experiment with automatic folder creation run

```bash
poetry new <experiment_name>
```

or, alternatively, if you've already created the folder, run

```bash
poetry init
```

**Note**: no images are allowed to put into folder. Please, consider using external links for attaching or using image files

## Coding Guidelines

Expand All @@ -61,9 +74,16 @@ Inside of this directory must be a `report.md` file with results, metrics, futur
- Include docstrings for functions and classes
- Write unit tests for new features or bug fixes

## Pull Request Format

- Name of your PR (keep it simple yet meaningful)
- Short description (provide list of changes)

When having any doubts, you can simply create a draft PR and request a review before merging your request.

## Reporting Issues

If you encounter any bugs or have feature requests, please open an issue on the GitHub repository. Provide as much detail as possible, including:
If you encounter any bugs or have feature requests, please, open an issue on the GitHub. Provide as much detail as possible, including:

- A clear and descriptive title
- Steps to reproduce the issue
Expand All @@ -73,14 +93,15 @@ If you encounter any bugs or have feature requests, please open an issue on the

## Current Focus Areas

We are currently working on supporting various types of graphs. Here's the current status:
We are currently working on supporting various types of graphs.

Supported graph types:

Supported types of graphs:
- [x] chain
- [x] single cycle
- [x] multi-cycle graph
- [x] complex graph with cycles

Currently unsupported graph types:

Currently unsupported types:
- [ ] single node cycle
- [ ] multi-cycle graph
- [ ] incomplete graph
- [ ] complex graph with cycles
Loading