ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Vector Similarity 0.00 in Retrieval test

Open Kryto614 opened this issue 1 year ago • 2 comments

Describe your problem

I'm running a retrieval testing with default parameters, and after entering a query, all the vector similarities of the retrieval chunks are showing up as 0.00. What might be the problem?

Kryto614 avatar Apr 19 '24 11:04 Kryto614

The vector similarity weight might be 0, isn't it?

KevinHuSh avatar Apr 21 '24 02:04 KevinHuSh

The vector similarity weight might be 0, isn't it?

The vector similarity weight is set to 0.3.

It retrieves the correct chunk and gives perfect response in chat mode, but fails to retrieve corresponding chunks revelant to the same query in the Retrieval test.

Additionally, the background log shows that Elasticsearch appears to have not connected correctly. I'm not sure if there's a connection between the two.

elastic_transport.ConnectionError: Connection error caused by: NameResolutionError(<urllib3.connection.HTTPConnection object at 0x7cac61f4d950>: Failed to resolve 'es01' ([Errno -3] Temporary failure in name resolution))
[WARNING] [2024-04-21 16:22:45,734] [_node_pool.mark_dead] [line:249]: Node <Urllib3HttpNode(http://es01:9200)> has failed for 4 times in a row, putting on 8 second timeout
[WARNING] [2024-04-21 16:22:46,741] [_node_pool.mark_dead] [line:249]: Node <Urllib3HttpNode(http://es01:9200)> has failed for 1 times in a row, putting on 1 second timeout
[WARNING] [2024-04-21 16:22:46,741] [_transport.perform_request] [line:395]: Retrying request after failure (attempt 0 of 3)

Kryto614 avatar Apr 21 '24 09:04 Kryto614

If you use docker, please check the network part in docker-compose-base.yaml.

KevinHuSh avatar Apr 23 '24 00:04 KevinHuSh