mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-10 04:48:59 +08:00
Fix hit cache error while raptoring. (#4955)
### What problem does this PR solve? #4126 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
849d9eb463
commit
29ceeba95f
@ -46,7 +46,7 @@ class RecursiveAbstractiveProcessing4TreeOrganizedRetrieval:
|
||||
|
||||
def _embedding_encode(self, txt):
|
||||
response = get_embed_cache(self._embd_model.llm_name, txt)
|
||||
if response:
|
||||
if response is not None:
|
||||
return response
|
||||
embds, _ = self._embd_model.encode([txt])
|
||||
if len(embds) < 1 or len(embds[0]) < 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user