2.5.x release notes
Release notes for Lingo4G 2.5.x.
Version 2.5.0
Release 2.5.0 comes with the following updates:
-
Up to 3x faster learning of label embeddings.
-
New stages and components for working with label and document embedding vectors.
-
New capabilities for content-field similarity computations.
Compatibility
- Java version
-
Lingo4G 2.5.0 requires Java 21 or newer.
- Project descriptor
-
Updates not required.
- Reindexing
-
Required. Lingo4G updates Lucene to version 10, which makes it incompatible with indices created by Lingo4G 2.4.x.
- Analysis request JSONs
-
Updates may be required. See the analysis API changes for the required changes to your analysis requests.
New features
- Faster computation of label embeddings
-
Lingo4G 2.5.0 can use vector CPU instructions (AVX2, Neon) when learning label embeddings. On most modern CPUs, label embedding computation should now be between 2x and 3x faster compared to versions 2.4.x.
Improvements
- More varied cluster labels
-
Version 2.5.0 by default combines two methods to generate cluster labels to balance between shorter and longer cluster labels.
- Conditional query builders
-
Version 2.5.0 introduces the
queryBuilder:ifandqueryBuilder:compositequery builders that make it possible to build queries with clauses that you can disable or enable depending on the value of a boolean variable. - Document vector search improvements
-
Version 2.5.0 reports the progress of similar document vector searches performed in the
documents:embeddingNearestNeighborsstage. It also improves the behavior when cancelling the long-running document vector searches. - New components for working with embedding vectors
-
Lingo4G 2.5.0 adds a number of new stages and components for working with label and document embedding vectors:
-
vector:fromTextconverts raw text to an embedding vector. You can use it to search for documents that are similar to an arbitrary text the user provides. -
documentScorer:byVectorSimilarityscores a set of documents based on the similarity of their embedding vectors to the vector you provide. -
labelScorer:byVectorSimilaritya set of labels based on the similarity of their embedding vectors to the vector you provide.
-
- Excel export improvements
-
Lingo4G 2.5.0 improves the compatibility of the Excel export with MacOS Numbers. Additionally, multi-value fields are now separated with a new line within each Excel cell.
Bug fixes
clusters:withRemappedDocuments-
Lingo4G 2.5.0 fixes a bug where
clusters:withRemappedDocumentswould fail if the input cluster was empty. - Long task summaries
-
For certain requests, previous Lingo4G versions could create long summaries the processing tasks Lingo4G performed, often reaching hundreds of kilobytes of text. Version 2.5.0 fixes the issue.
API changes
documentNeighbors:*-
Lingo4G 2.5.0 introduces the
documentNeighborscomponents to generalize the process of finding documents similar to one seed document.As a result, the
documentScorer:byQueryis now thedocumentScorer:byDocumentNeighbors. To score documents by the results of document-specific queries, use thedocumentNeighbors:byQuerycomponent.
valueCollector:*-
Lingo4G 2.5.0 introduces the
valueCollectorcomponents to generalize the process of collecting values from individual documents.As a result, the
queryBuilderVariableinstead of theinputandvalueproperties now accepts thevaluesproperty that specifies thevalueCollectorto use to fetch the variable's values.