This repository has been archived by the owner on May 9, 2022. It is now read-only.
Added
- AI data is synchronizable between devices via the new functions
syncdata_bytes
andsynchronize
. - Add multi-threading support: Parallelism is always enabled for mobile targets and can optionally be enabled for web targets.
An optional set ofFeature
s is introduced to pick the assets for the chosen target during the setup (seegetInputData()
in the example).
Feature
are currently only supported on the web: the caller needs to pass the set of available features on the browser to thegetAssets
function and the library automatically returns the most suitable WASM assets for the given features.
For the AI to run in parallel on the web it is required that it runs on a WebWorker. - Add methods to instantiate the AI from a state:
restore
. - All methods of
XaynAi
have been made asynchronous. - The
RerankMode
s ofXaynAi.rerank()
have been extended with unpersonalized variants. - MAB system is not executed anymore. Only the context value is used instead to rank the documents.
- For standard search QA-mBert is used to rerank.
- The AI does not fail at the first error but try to rerank the documents with the remaining systems.
Changed
- The method
create
does not accept anymore a serialized state and it can only be used to create a clean AI.
Removed
- Removed the optional
features
parameter in theSetupData
constructor. - Removed the
wasmParallelX
AssetType
s. Both parallel and sequential WASM assets share now the sameAssetType
(wasmModule
/wasmScript
).