v0.45.0
PromptingTools v0.45.0
Breaking Change
getindex(::MultiIndex, ::MultiCandidateChunks)
now returns sorted chunks by default (sorted=true
) to guarantee that potentialcontext
(=chunks
) is sorted by descending similarity score across different sub-indices.
Updated
- Updated a
hcat
implementation inRAGTools.get_embeddings
to reduce memory allocations for large embedding batches (c. 3x fewer allocations, seehcat_truncate
). - Updated
length_longest_common_subsequence
signature to work only for pairs ofAbstractString
to not fail silently when wrong arguments are provided.
Fixed
- Changed the default behavior of
getindex(::MultiIndex, ::MultiCandidateChunks)
to always return sorted chunks for consistency with other similar functions and correctretrieve
behavior. This was accidentally changed in v0.40 and is now reverted to the original behavior.
Commits
Merged pull requests: