Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/types-docutils-0.21.0.20240711
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasKoehneckeAA authored Jul 22, 2024
2 parents c84a81e + 11fdd41 commit 081efde
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 52 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@
### Breaking Changes
...


### Features
...

### Fixes
- Reverted a bug introduced in `MultipleChunkRetrieverQa` text highlighting.
...

### Deprecations
...

## 5.0.3

### Fixes
- Update docstrings for 'calculate_bleu' in 'BleuGrader' to now correctly reflect float range from 0 to 100 for the return value.

## 5.0.2

Expand Down
89 changes: 44 additions & 45 deletions poetry.lock

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

8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "intelligence-layer"
version = "5.0.2"
version = "5.0.3"
description = ""
authors = ["Aleph Alpha Engineering <[email protected]>"]
readme = "README.md"
Expand All @@ -24,7 +24,7 @@ requests = "^2.32.3"
pycountry = "24.6.1"
opentelemetry-api = "^1.22.0"
opentelemetry-sdk = "^1.22.0"
huggingface-hub = "^0.23.4"
huggingface-hub = "^0.23.5"
opentelemetry-exporter-otlp-proto-http = "1.23.0"
# summary grader
rouge-score = "^0.1.2"
Expand All @@ -36,7 +36,7 @@ argilla = "^1.29.0"
# lint & format
mypy = "^1.10.1"
nbqa = "^1.8.5"
ruff = "^0.5.1"
ruff = "^0.5.2"
pre-commit = "^3.7.1"

# tests
Expand All @@ -57,7 +57,7 @@ pandas-stubs = "^2.2.2.240603"

# docs
sphinx-rtd-theme = "^2.0.0"
sphinx = "^7.3.7"
sphinx = "^7.4.5"
matplotlib = "^3.9.1"

[tool.poetry.group.docs.dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/documentation/how_tos/how_to_implement_a_task.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
" 1. Pass the Model to the constructor \n",
" 2. Implement your domain logic in `do_run()`\n",
" 1. Generate a `Prompt`. Examples for generating prompts are `ControlModel.to_instruct_prompt()`, `PromptTemplate.to_rich_prompt()` or `Prompt.from_text()`\n",
" - We recommend to not write custom `PromptTemplate`s. If necessary, look up the documentation of `PromptTemplate`\n",
" 2. Run the model with the prompt\n",
" 3. Map the prompt output to the task output class\n",
"3. Run and test it"
Expand Down
2 changes: 1 addition & 1 deletion src/intelligence_layer/evaluation/evaluation/graders.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def calculate_bleu(self, hypothesis: str, reference: str) -> float:
reference: The baseline for the evaluation.
Returns:
BLEU-score, float between 0 and 1. Where 1 means perfect match and 0 no overlap.
BLEU-score, float between 0 and 100. Where 100 means perfect match and 0 no overlap.
"""
bleu_score = self.bleu.corpus_score(
hypotheses=[hypothesis], references=[[reference]]
Expand Down

0 comments on commit 081efde

Please sign in to comment.