Magic_yuan
|
b89041b5b3
|
feat(operate): 添加实体类型配置并优化提示生成
- 在全局配置中添加 entity_types 参数,用于自定义实体类型
- 在生成实体提取和关系提取的提示时,使用配置的实体类型替代默认值
- 优化了提示生成逻辑,提高了代码的可配置性和灵活性
|
2024-12-11 13:53:05 +08:00 |
|
Magic_yuan
|
316c4df949
|
更新日志描述
|
2024-12-10 14:15:43 +08:00 |
|
Magic_yuan
|
58c0f94346
|
fix(lightrag): 修复只有实体没有关系的chunk处理逻辑
- 只有实体没有关系时,继续处理,而不是直接return
- 当只有实体而没有关系的图片在高阶查询关系时会返回空,这里优化返回,当没有关系时降级为local查询
|
2024-12-10 14:13:11 +08:00 |
|
Larfii
|
2ba20910bb
|
fix naive_query
|
2024-12-09 17:45:01 +08:00 |
|
zrguo
|
71af34196f
|
Merge branch 'main' into fix-entity-name-string
|
2024-12-09 17:30:40 +08:00 |
|
Magic_yuan
|
865e76a083
|
修复bug
https://github.com/HKUDS/LightRAG/issues/306
主要修改包括:
在存储文本块数据时增加了验证,确保只存储有效的数据
在处理文本块之前增加了空列表检查
在截断文本块之前过滤掉无效的数据
增加了更多的日志警告信息
查询的修改:
添加了对 chunks 的有效性检查,过滤掉无效的 chunks:
|
2024-12-09 15:08:30 +08:00 |
|
Magic_yuan
|
ccf44dc334
|
feat(cache): 增加 LLM 相似性检查功能并优化缓存机制
- 在 embedding 缓存配置中添加 use_llm_check 参数
- 实现 LLM 相似性检查逻辑,作为缓存命中的二次验证- 优化 naive 模式的缓存处理流程
- 调整缓存数据结构,移除不必要的 model 字段
|
2024-12-08 17:35:52 +08:00 |
|
Saujanya Verma
|
5a33ce1c1a
|
Fix: Ensure entity_or_relation_name is a string in _handle_entity_relation_summary
|
2024-12-06 20:54:01 +05:30 |
|
magicyuan876
|
8924d2b8fc
|
Merge remote-tracking branch 'origin/main'
# Conflicts:
# lightrag/llm.py
# lightrag/operate.py
|
2024-12-06 15:06:00 +08:00 |
|
yuanxiaobin
|
ad4b0d1ba9
|
Merge remote-tracking branch 'origin/main'
# Conflicts:
# lightrag/llm.py
# lightrag/operate.py
|
2024-12-06 15:06:00 +08:00 |
|
magicyuan876
|
e619b09c8a
|
重构缓存处理逻辑
- 提取通用缓存处理逻辑到新函数 handle_cache 和 save_to_cache
- 使用 CacheData 类统一缓存数据结构
- 优化嵌入式缓存和常规缓存的处理流程
- 添加模式参数以支持不同查询模式的缓存策略
- 重构 get_best_cached_response 函数,提高缓存查询效率
|
2024-12-06 14:29:16 +08:00 |
|
yuanxiaobin
|
584258078f
|
重构缓存处理逻辑
- 提取通用缓存处理逻辑到新函数 handle_cache 和 save_to_cache
- 使用 CacheData 类统一缓存数据结构
- 优化嵌入式缓存和常规缓存的处理流程
- 添加模式参数以支持不同查询模式的缓存策略
- 重构 get_best_cached_response 函数,提高缓存查询效率
|
2024-12-06 14:29:16 +08:00 |
|
partoneplay
|
e82d13e182
|
Add support for Ollama streaming output and integrate Open-WebUI as the chat UI demo
|
2024-12-06 10:13:16 +08:00 |
|
partoneplay
|
335179196a
|
Add support for Ollama streaming output and integrate Open-WebUI as the chat UI demo
|
2024-12-06 10:13:16 +08:00 |
|
Larfii
|
645890aff6
|
Fix JSON parsing error
|
2024-12-05 20:40:35 +08:00 |
|
Larfii
|
0ca819dd05
|
Fix JSON parsing error
|
2024-12-05 20:40:35 +08:00 |
|
Larfii
|
1e4e2ea4f3
|
Fix JSON parsing error
|
2024-12-05 20:22:44 +08:00 |
|
Larfii
|
570790cd37
|
Fix JSON parsing error
|
2024-12-05 20:22:44 +08:00 |
|
Larfii
|
9af3676991
|
Fix JSON parsing error
|
2024-12-05 18:26:55 +08:00 |
|
Larfii
|
5e1f317264
|
Fix JSON parsing error
|
2024-12-05 18:26:55 +08:00 |
|
Larfii
|
254330813a
|
fix JSON parsing error
|
2024-12-05 18:13:12 +08:00 |
|
Larfii
|
eda9d5abeb
|
fix JSON parsing error
|
2024-12-05 18:13:12 +08:00 |
|
LarFii
|
44d441a951
|
update insert custom kg
|
2024-12-04 19:44:04 +08:00 |
|
LarFii
|
db9b9f69f8
|
update insert custom kg
|
2024-12-04 19:44:04 +08:00 |
|
LarFii
|
be72c825d2
|
fix entity extract
|
2024-12-04 16:01:19 +08:00 |
|
LarFii
|
7f8460c8ec
|
fix entity extract
|
2024-12-04 16:01:19 +08:00 |
|
Yizhi Zhang
|
3a6645b78d
|
fix bug of example prompt
|
2024-12-03 22:25:50 +08:00 |
|
Yizhi Zhang
|
380a1d1bc3
|
fix bug of example prompt
|
2024-12-03 22:25:50 +08:00 |
|
b10902118
|
085032640c
|
fix with ruff (unused import)
|
2024-12-01 16:09:24 +08:00 |
|
b10902118
|
3f9d19401f
|
fix with ruff (unused import)
|
2024-12-01 16:09:24 +08:00 |
|
b10902118
|
753c1e6714
|
support JSON output for ollama and openai
|
2024-11-29 21:41:37 +08:00 |
|
b10902118
|
b0dd600429
|
support JSON output for ollama and openai
|
2024-11-29 21:41:37 +08:00 |
|
Sebastian Schramm
|
b0483ae91d
|
fix templating of language in prompts
|
2024-11-28 14:28:29 +01:00 |
|
Sebastian Schramm
|
ba25614423
|
fix templating of language in prompts
|
2024-11-28 14:28:29 +01:00 |
|
jin
|
9f3c0581ac
|
Merge branch 'HKUDS:main' into main
|
2024-11-27 15:16:28 +08:00 |
|
jin
|
a88908009c
|
Merge branch 'HKUDS:main' into main
|
2024-11-27 15:16:28 +08:00 |
|
jin
|
8c88599abc
|
fix formate
|
2024-11-26 10:21:39 +08:00 |
|
jin
|
28bc45c8f5
|
fix formate
|
2024-11-26 10:21:39 +08:00 |
|
jin
|
7cd06159e0
|
add LightRAG init parameters in readme
also fix some error
|
2024-11-26 10:19:28 +08:00 |
|
jin
|
5bde05ed53
|
add LightRAG init parameters in readme
also fix some error
|
2024-11-26 10:19:28 +08:00 |
|
Larfii
|
8562ecdebc
|
Add a progress bar
|
2024-11-25 15:04:38 +08:00 |
|
Larfii
|
ac1587ad2a
|
Add a progress bar
|
2024-11-25 15:04:38 +08:00 |
|
jin
|
26ae240c65
|
Logic Optimization
|
2024-11-25 13:40:38 +08:00 |
|
jin
|
21f161390a
|
Logic Optimization
|
2024-11-25 13:40:38 +08:00 |
|
jin
|
1dbe803521
|
Merge branch 'main' of https://github.com/jin38324/LightRAG
|
2024-11-25 13:32:33 +08:00 |
|
jin
|
bf5815be8f
|
Merge branch 'main' of https://github.com/jin38324/LightRAG
|
2024-11-25 13:32:33 +08:00 |
|
jin
|
89c2de54a2
|
Optimization logic
|
2024-11-25 13:29:55 +08:00 |
|
jin
|
af3aef5d88
|
Optimization logic
|
2024-11-25 13:29:55 +08:00 |
|
zzzcccxx
|
156611ec7a
|
修改了relation_counts计数规则
|
2024-11-21 14:35:18 +08:00 |
|
zzzcccxx
|
116e1d20a9
|
修改了relation_counts计数规则
|
2024-11-21 14:35:18 +08:00 |
|