distance value in the topK object of the Search Extract Output node.
Weaviate and Qdrant are tools that calculate similarity in different ways:
- Weaviate calculates similarity values within the range of 0 to 2, where 0 represents maximum similarity and 2 represents minimum similarity.
- Qdrant calculates similarity values within the range of -1 to 1, where 1 represents maximum similarity and -1 represents minimum similarity.
distance value. If you use distance to make decisions in the flow, consider the new similarity range of -1 to 1.
Adapting distance values: before and after Cognigy 4.74.0
If your flows useddistance values within the range of 0 to 2 before the release of Cognigy 4.74.0 and you want to keep this approach, change your flows as follows:
- Replace all
distanceinstances with1 - distance.
distance for the first time in Cognigy 4.74.0 or later, use the value within the range of -1 to 1.