Commit Graph

355 Commits

Author SHA1 Message Date
magicyuan876
6540d11096 修复 args_hash在使用常规缓存时候才计算导致embedding缓存时没有计算的bug 2024-12-06 10:21:53 +08:00
magicyuan876
2ecdab2f18 整理了一下手误的注释 2024-12-06 09:11:22 +08:00
magicyuan876
84e3b9e44b feat(lightrag): 添加 查询时使用embedding缓存功能
- 在 LightRAG 类中添加 embedding_cache_config配置项
- 实现基于 embedding 相似度的缓存查询和存储
- 添加量化和反量化函数,用于压缩 embedding 数据
- 新增示例演示 embedding 缓存的使用
2024-12-06 08:18:09 +08:00
magicyuan876
d48c6e4588 feat(lightrag): 添加 查询时使用embedding缓存功能
- 在 LightRAG 类中添加 embedding_cache_config配置项
- 实现基于 embedding 相似度的缓存查询和存储
- 添加量化和反量化函数,用于压缩 embedding 数据
- 新增示例演示 embedding 缓存的使用
2024-12-06 08:17:20 +08:00
Larfii
645890aff6 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
9af3676991 Fix JSON parsing error 2024-12-05 18:26:55 +08:00
Larfii
567fde643f Update version 2024-12-05 18:22:50 +08:00
zrguo
59812f2ede Merge pull request #399 from partoneplay/main
Add MongoDB as KV storage
2024-12-05 18:21:50 +08:00
Larfii
254330813a fix JSON parsing error 2024-12-05 18:13:12 +08:00
Larfii
e99832cc13 Fix: unexpected keyword argument error. 2024-12-05 14:11:43 +08:00
partoneplay
d8ba7c57f3 Add MongoDB as KV storage 2024-12-05 13:57:43 +08:00
zrguo
6d274019dd Merge pull request #393 from partoneplay/main
Add Milvus as vector storage
2024-12-05 12:05:30 +08:00
zrguo
c90327298c Merge pull request #397 from tmuife/main
rename example file
2024-12-05 11:57:26 +08:00
Larfii
a2072a055a fix: unexpected keyword argument error 2024-12-05 11:47:56 +08:00
tmuife
0744d30a60 Merge branch 'HKUDS:main' into main 2024-12-05 10:59:10 +08:00
partoneplay
052322b213 Add Milvus as vector storage 2024-12-05 08:48:41 +08:00
LarFii
dff3fe18e9 Update Code Structure 2024-12-04 19:59:50 +08:00
LarFii
1fdaf40b6e Update Code Structure 2024-12-04 19:58:16 +08:00
LarFii
44d441a951 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
jinsh
ffc916a6d4 rename 2024-12-04 14:10:43 +08:00
zrguo
3e69b326ec Merge pull request #383 from MRX760/main
added nvidia text-embedding API and example of using nvidia API llm a…
2024-12-04 11:21:46 +08:00
zrguo
7b413cb4b5 Merge pull request #384 from Ecocytus/main
fix examples' prompt bug
2024-12-04 11:17:07 +08:00
zrguo
6927b57520 Merge pull request #378 from doosenn/main
fix neo4jstorage bug
2024-12-04 11:11:19 +08:00
zrguo
96962cd243 Merge pull request #375 from partoneplay/main
Ollama `embedding` deprecated in favor of `embed`
2024-12-04 11:09:44 +08:00
zrguo
7a76ba231c Merge pull request #388 from magicyuan876/main
修改日志文件路径
2024-12-04 11:03:12 +08:00
magicyuan876
607d4f9555 修改日志文件路径
- 因为LightRAG的几乎都是导入的utils中的全局logger对象,当多个rag实例的时候并无法完全把日志记录到对应的working_dir,并且应用中删除working_dir时会由于logger的句柄无法删除
- 此修改简化了日志文件的路径,不再依赖于 working_dir 属性,日志文件独立于working_dir
2024-12-04 08:44:13 +08:00
Yizhi Zhang
3a6645b78d fix bug of example prompt 2024-12-03 22:25:50 +08:00
MRX760
5f13ce1ce9 added nvidia text-embedding API and example of using nvidia API llm and text-embedding 2024-12-03 17:15:10 +07:00
zuoluo
801619084f fix neo4jstorage bug 2024-12-03 16:04:58 +08:00
partoneplay
bc2b8c592e embedding deprecated in favor of embed 2024-12-03 08:42:36 +08:00
zrguo
685f7b1e80 Merge pull request #370 from jin38324/main
fix embedding_func issue for oracle database
2024-12-02 16:04:01 +08:00
zrguo
174af3742a Merge pull request #368 from AdityaKalraShorthillsAI/main
Added embedding_func argument in Neo4JStorage class's __init__ method in neo4j implementation
2024-12-02 16:02:53 +08:00
zrguo
e8b5498699 Merge pull request #360 from ahmadhatahet/azure_openai_embedding
Azure OpenAI Embedding
2024-12-02 16:02:13 +08:00
zrguo
3e4def137b Merge pull request #354 from TashaSkyUp/patch-1
fix for #209
2024-12-02 15:53:08 +08:00
zrguo
17339202a8 Merge pull request #353 from b10902118/dev
JSON mode support for ollama and openai gpt
2024-12-02 15:52:05 +08:00
zrguo
96cc3ebfa9 Merge pull request #348 from donbr/patch-1
Update README: Move Neo4J Storage Section for Better Visibility
2024-12-02 15:45:32 +08:00
jin
1a3438093e Merge branch 'HKUDS:main' into main 2024-12-02 15:31:01 +08:00
jin
9f28ba0b01 Update lightrag_oracle_demo.py
add embedding_func for graph database, it's deleted in commit 5661d76860
This will fix the issue
2024-12-02 15:30:35 +08:00
AdityaKalraShorthillsAI
7734b81911 Added embedding_func argument in Neo4JStorage class's __init__ method in neo4j implementation 2024-12-02 02:44:47 +05:30
b10902118
085032640c fix with ruff (unused import) 2024-12-01 16:09:24 +08:00
Ahmad Hatahet
f281414308 add api_version to azure_openai_complete_if_cache 2024-11-30 17:47:33 +01:00
Ahmad Hatahet
23cabbe7a3 update max_token_size according to openai doc 2024-11-30 17:16:07 +01:00
Ahmad Hatahet
7fea7d7b5e add api_version to args 2024-11-30 17:11:38 +01:00
Tasha Upchurch
eae310cd68 fix for #209
function was returning a closed event loop.
2024-11-29 13:27:08 -07:00
b10902118
0ab55da47a fix error and tested 2024-11-30 00:00:51 +08:00
b10902118
753c1e6714 support JSON output for ollama and openai 2024-11-29 21:41:37 +08:00
donbr
f88b573e66 Update README.md to move Neo4j Storage content
Move `Using Neo4J for Storage` content outside of Ollama details group for improved visibility to this option.
2024-11-28 20:08:19 -08:00
zrguo
4223b4f603 Merge pull request #343 from sebastianschramm/ses/fix_language_templating_in_prompts
fix templating of language in prompts
2024-11-28 21:36:07 +08:00