mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
mv service_conf.yaml to conf/ and fix: add 'answer' as a parameter to 'generate' (#3379)
### What problem does this PR solve? #3373 ### Type of change - [x] Refactoring - [x] Bug fix
This commit is contained in:
@ -33,6 +33,7 @@ from tqdm import tqdm
|
||||
global max_docs
|
||||
max_docs = sys.maxsize
|
||||
|
||||
|
||||
class Benchmark:
|
||||
def __init__(self, kb_id):
|
||||
self.kb_id = kb_id
|
||||
|
||||
@ -312,7 +312,7 @@ class InfinityConnection(DocStoreConnection):
|
||||
for k, v in d.items():
|
||||
if k.endswith("_kwd") and isinstance(v, list):
|
||||
d[k] = " ".join(v)
|
||||
ids = [f"'{d["id"]}'" for d in documents]
|
||||
ids = [f"{d['id']}" for d in documents]
|
||||
str_ids = ", ".join(ids)
|
||||
str_filter = f"id IN ({str_ids})"
|
||||
table_instance.delete(str_filter)
|
||||
|
||||
Reference in New Issue
Block a user