Sfoglia il codice sorgente

Error storing tag in Redis (#7541)

### What problem does this PR solve?

The parameter positions were incorrect and have been corrected to use
keyword argument passing

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.19.0
WhiteBear 5 mesi fa
parent
commit
5352bdf4da
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      rag/app/tag.py

+ 1
- 1
rag/app/tag.py Vedi File

@@ -134,7 +134,7 @@ def label_question(question, kbs):
all_tags = get_tags_from_cache(tag_kb_ids)
if not all_tags:
all_tags = settings.retrievaler.all_tags_in_portion(kb.tenant_id, tag_kb_ids)
set_tags_to_cache(all_tags, tag_kb_ids)
set_tags_to_cache(tags=all_tags, kb_ids=tag_kb_ids)
else:
all_tags = json.loads(all_tags)
tag_kbs = KnowledgebaseService.get_by_ids(tag_kb_ids)

Loading…
Annulla
Salva