Fix linting
This commit is contained in:
parent
52d8815230
commit
b1f874b489
1 changed files with 1 additions and 4 deletions
|
|
@ -2049,10 +2049,7 @@ async def naive_query(
|
||||||
if not len(results):
|
if not len(results):
|
||||||
return PROMPTS["fail_response"]
|
return PROMPTS["fail_response"]
|
||||||
|
|
||||||
# 直接从 chunks_vdb.query 结果中获取内容
|
valid_chunks = [result for result in results if "content" in result]
|
||||||
valid_chunks = [
|
|
||||||
result for result in results if "content" in result
|
|
||||||
]
|
|
||||||
|
|
||||||
if not valid_chunks:
|
if not valid_chunks:
|
||||||
logger.warning("No valid chunks found after filtering")
|
logger.warning("No valid chunks found after filtering")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue