Skip to content

Commit

Permalink
not found key kb_id
Browse files Browse the repository at this point in the history
  • Loading branch information
isthaison committed Dec 4, 2024
1 parent 2d6cf81 commit 3260642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rag/svr/task_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def build_chunks(task, progress_callback):

def init_kb(row, vector_size: int):
idxnm = search.index_name(row["tenant_id"])
return settings.docStoreConn.createIdx(idxnm, row["kb_id"], vector_size)
return settings.docStoreConn.createIdx(idxnm, row.get("kb_id",""), vector_size)


def embedding(docs, mdl, parser_config=None, callback=None):
Expand Down

0 comments on commit 3260642

Please sign in to comment.