workspace working

This commit is contained in:
2026-01-12 22:31:11 +08:00
parent 2738a822d1
commit 370fe6368a
149 changed files with 4648 additions and 660 deletions

10
find_line2.py Normal file
View File

@@ -0,0 +1,10 @@
import sys
with open('LightRAG-main/lightrag/operate.py', 'r', encoding='utf-8') as f:
lines = f.readlines()
for i, line in enumerate(lines):
if 'not merged_chunks' in line:
print(f'Found at line {i+1}: {line.strip()}')
# print surrounding lines
for j in range(max(0, i-5), min(len(lines), i+10)):
print(f'{j+1}: {lines[j].rstrip()}')
break