Skip to content

Commit

Permalink
prep 0.6.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrandt committed Feb 27, 2024
1 parent 1ca862b commit 7f7a284
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 12 deletions.
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# Changelog

## 0.6.0

### Breaking Changes

- breaking change: The evaluation module is moved from core to evaluation .
- breaking change: RetrieverBasedQa task answers now contain document ids in each subanswer
- breaking change: LongcontextSummarize no longer supports the max_loops parameter
- breaking change: Rich Mode Representation
- The LLM-based tasks no longer accept client, but rather an AlephAlphaModel, which holds the client. The available model classes are AlephAlphaModel and LuminousControlModel
- The AlephAlphaModel is responsible for its prompt format, tokenizers, complete task and explain task. These responsibilities were moved into the model classes.
- The default client url is now configurable via the environment variable CLIENT_URL
- breaking change: PromptWithMetadata is removed in favor of RichPrompt . The semantics remain largely unchanged
- breaking change: The compression-dependent long context summarize classes as well as the few-shot summarize class were removed. Use the better-performing steerable summary classes.
- breaking change: Runner, Evaluator & Aggregation
- The EvaluationRepository has been split up. There is now a total of four repositories: dataset , run, evaluation and aggregation. These repositories save information from their respective steps
- The evaluation and evaluation aggregation have been split and are now provided by the classes Evaluator and Aggregator, respectively. These two classes have no abstract methods. The evaluation and aggregation logic is provided by implementing the abstract methods of the classes EvaluationLogic and AggregationLogic which are passed on to an instance of the Evaluator and Aggregator class, respectively. For an example, see the Jupyter notebook xxx.

### New Features

- Documentation
- feature: Added an intro to the Intelligence Layer concepts in Concepts.md
- feature: Added documentation on how to execute tasks in parallel. See the performance_tips notebook for more information.
- QA
- feature: RetrieverBasedQa task no longer sources its final from all sources, but only the most relevant. This performed better in evaluation.
- feature: The notebooks for RetrieverBasedQa have been updated to use SingleChunkQa.
- feature: SingleChunkQa now supports a custom no-answer phrase
- feature: MultiChunkQA and LongContextQa allow for more configuration of the used qa-task.
- feature: Make the distance metric configurable in QdrantInMemoryRetriever.
- features: Added list_namespaces to DocumentIndexClient to list all available namespaces in DocumentIndex.
- Evaluation
- feature: The argilla now supports splitting a dataset for multiple people via the split_dataset function
- feature: Utilities for ELO score/ranking calculation
- The build_tournaments utility function has been added to facilitate the computation of ELO scores when evaluating two models. See InstructComparisonArgillaEvaluator for an example how it can be used to compute the ELO scores.
- feature: The Evaluator can run multiple evaluation tasks in parallel.
- Intelligence app
- feature: IntelligenceApp returns 204 if the output is None
- feature: Allow registering tasks with a task dependency in IntelligenceApp.
- Others
- feature: Runner accepts in run_dataset a new parameter num_examples specifying how many of the first n examples should be run.
- feature: Support None as return type in Task
- feature: Added a new task: ChunkOverlapTask splits a longer text into overlapping chunks.

## 0.5.1

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

[tool.poetry]
name = "intelligence-layer"
version = "0.5.1"
version = "0.6.0"
description = ""
authors = ["Aleph Alpha Engineering <[email protected]>"]
readme = "README.md"
license = "Aleph Alpha Licensed"
packages = [{include = "intelligence_layer", from="src"}]
packages = [{ include = "intelligence_layer", from = "src" }]

[tool.poetry.dependencies]
python = ">=3.10,<3.12"
Expand All @@ -28,7 +28,7 @@ requests = "^2.31.0"
pytest-xdist = "^3.5.0"
langdetect = "^1.0.9"
nltk = "^3.8.1"
pycountry = "23.12.11" #22.3.5 crushes the readthedocs
pycountry = "23.12.11"
rouge = "^1.0.1"
opentelemetry-api = "^1.22.0"
opentelemetry-sdk = "^1.22.0"
Expand All @@ -37,29 +37,33 @@ huggingface-hub = "^0.20.3"
[tool.poetry.group.dev.dependencies]
mypy = "^1.8.0"
pytest = "*"
black = {extras = ["jupyter"], version = "^24.2.0"}
black = { extras = ["jupyter"], version = "^24.2.0" }
pre-commit = "*"
httpx = "*"
types-Pygments="*"
types-colorama="*"
types-docutils="*"
types-setuptools="*"
types-Pygments = "*"
types-colorama = "*"
types-docutils = "*"
types-setuptools = "*"
types-decorator = "*"
types-requests = "*"
types-tqdm = "*"
sphinx-rtd-theme = "^2.0.0"
sphinx = "^7.2.6"
pylama = {extras = ["all","toml"], version = "^8.4.1"}
pylama = { extras = ["all", "toml"], version = "^8.4.1" }
faker = "^23.2.1"

[tool.mypy]
files = "src,tests"
strict = "True"

[tool.pytest.ini_options]
markers = ["internal: marks tests as internal (deselect with '-k \"not internal\"')"]
markers = [
"internal: marks tests as internal (deselect with '-k \"not internal\"')",
]
addopts = "--capture=tee-sys"
filterwarnings = [ 'ignore:.*\`general_plain_validator_function\` is deprecated.*' ]
filterwarnings = [
'ignore:.*\`general_plain_validator_function\` is deprecated.*',
]

[tool.pylama]
skip = "*/__init__.py,.venv/*"
Expand Down
2 changes: 1 addition & 1 deletion trace-viewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"test:unit.run": "vitest run"
},
"type": "module",
"version": "0.5.1",
"version": "0.6.0",
"volta": {
"node": "20.11.1",
"pnpm": "8.15.3"
Expand Down

0 comments on commit 7f7a284

Please sign in to comment.