Commit Graph

220 Commits

Author SHA1 Message Date
90houlaoheshang
846937195e 集中处理环境变量 2024-11-06 11:13:37 +08:00
90houlaoheshang
deca6305a9 feat(lightrag): 添加环境变量控制嵌入层最大 token 数量
- 在 lightrag_api_openai_compatible_demo.py 中,使用环境变量 EMBEDDING_MAX_TOKEN_SIZE 来设置嵌入层的最大 token 数量,默认值为 8192
2024-11-06 10:48:59 +08:00
90houlaoheshang
a140f744a3 refactor(lightrag): 优化文件上传接口
- 移除 InsertFileRequest 模型,改用 FastAPI 的 File 和 UploadFile
- 修改 insert_file 函数,以适应新的文件上传方式
- 更新函数参数和逻辑,支持直接上传文件
- 优化错误处理和响应消息
2024-11-05 17:22:04 +08:00
90houlaoheshang
11b791c72b README 2024-11-05 16:48:29 +08:00
90houlaoheshang
3cc448fc26 API中可以通过POST参数控制查询是否only_need_context 2024-11-05 16:44:32 +08:00
90houlaoheshang
78a1b8ed7b docs(README): 添加环境变量配置说明
- 在 README.md 文件中补充了环境变量配置步骤
- 新增 OPENAI_BASE_URL、OPENAI_API_KEY、LLM_MODEL 和 EMBEDDING_MODEL 环境变量的说明
- 为使用 OpenAI API 和自定义模型提供了更详细的配置指南
2024-11-05 16:14:45 +08:00
90houlaoheshang
f82d4f7bd6 Merge remote-tracking branch 'origin/main' 2024-11-05 15:50:49 +08:00
90houlaoheshang
9bab630059 fastapi接收环境变量EMBEDDING_MODEL、LLM_MODEL、OPENAI_API_KEY、OPENAI_BASE_URL以自定模型 2024-11-05 15:13:48 +08:00
zrguo
b4ab9b26b8 Update README.md 2024-11-05 15:05:35 +08:00
zrguo
7789a99cb1 Update README.md 2024-11-05 14:24:42 +08:00
✨Data Intelligence Lab@HKU✨
4d3697f848 Update README.md 2024-11-05 11:34:54 +08:00
zrguo
f60368f8db Update README.md 2024-11-04 21:06:43 +08:00
zrguo
d768cfe398 Merge pull request #197 from wiltshirek/main
Neo4J integration.
2024-11-04 20:49:32 +08:00
wiltshirek
266995bed6 Merge branch 'HKUDS:main' into main 2024-11-03 07:24:28 -05:00
Ken Wiltshire
7af90f0129 linting errors fixed 2024-11-03 07:17:02 -05:00
zrguo
3f7ae11962 Update utils.py 2024-11-03 17:53:53 +08:00
zrguo
26c5f1b743 Merge pull request #183 from gogoswift/main
Fix combine_contexts in hybrid_query
2024-11-03 17:44:06 +08:00
Ken Wiltshire
8bd5d9b5b2 using neo4j async 2024-11-02 18:35:07 -04:00
wiltshirek
f40725feeb Merge branch 'main' into main 2024-11-01 16:50:45 -04:00
Ken Wiltshire
465c9a13d9 cleaning code for pull 2024-11-01 16:29:36 -04:00
Ken Wiltshire
8547dd4941 cleaning code for pull 2024-11-01 16:13:39 -04:00
Ken Wiltshire
f375620992 cleaning code for pull 2024-11-01 16:11:19 -04:00
Ken Wiltshire
13940c1726 env var naming conflict, qualified by prefix 2024-11-01 14:24:17 -04:00
Ken Wiltshire
b41d990fd6 securing for production with env vars for creds 2024-11-01 11:01:50 -04:00
Ken Wiltshire
e966a14418 set kg by start param, defaults to networkx 2024-11-01 08:47:52 -04:00
gogoswift
55cce796b9 Update operate.py 2024-10-31 15:17:02 +08:00
gogoswift
b91d3912cc Update utils.py 2024-10-31 14:31:26 +08:00
gogoswift
4b92161c37 Update operate.py
消除text_units_section_list源文件的换行,统一混合检索上下文合并时的转换
2024-10-31 11:52:06 +08:00
gogoswift
f0524598c8 Update utils.py
混合检索的合并函数
2024-10-31 11:34:01 +08:00
gogoswift
eb60adf64d Update operate.py
修正输出格式与合并函数
2024-10-31 11:32:44 +08:00
zrguo
3501a2b914 Merge pull request #177 from WinstonCHEN1/main
fix:Step_3.py context
2024-10-31 08:24:22 +08:00
WinstonCHEN1
f95384b68c fix:Step_3.py context 2024-10-30 15:36:44 -07:00
Ken Wiltshire
e4509327dd index to neo4j working and tested. check queires next. 2024-10-30 17:48:14 -04:00
✨Data Intelligence Lab@HKU✨
62d7ac2186 Update README.md 2024-10-30 10:49:59 +08:00
✨Data Intelligence Lab@HKU✨
1d6754f01a Update README.md 2024-10-30 10:48:45 +08:00
zrguo
722127aad4 Merge pull request #168 from Dormiveglia-elf/hotfix/asynchronous
[hotfix-#163] Fix asynchronous problem
2024-10-30 09:38:21 +08:00
Ken Wiltshire
9ab7312ecc edge degree next almost done 2024-10-29 15:36:07 -04:00
Zhenyu Pan
24aedf35f2 [hotfix-#163] Fix asynchronous problem 2024-10-29 23:29:47 +08:00
zrguo
8ebeeb465f Merge pull request #164 from MrGidea/main
Multiple file types support input
2024-10-29 17:03:34 +08:00
MrGidea
5f3537c5ed Merge branch 'HKUDS:main' into main 2024-10-29 16:54:35 +08:00
MrGidea
fb093690da Update README.md 2024-10-29 16:36:04 +08:00
LarFii
818074d258 Update README.md 2024-10-29 16:16:11 +08:00
MrGidea
fe5621e25a Update README.md 2024-10-29 15:47:17 +08:00
MrGidea
116dc1c315 Update README.md 2024-10-29 15:46:48 +08:00
MrGidea
8ce390db33 Update README.md 2024-10-29 15:45:00 +08:00
MrGidea
cc83045f46 Update README.md 2024-10-29 15:44:41 +08:00
zrguo
59269f107a Merge pull request #156 from alazarchuk/main
Add ability to pass additional parameters to ollama library
2024-10-29 10:11:21 +08:00
Andrii Lazarchuk
d4ff318f1c Merge pull request #5 from alazarchuk/before-sync-28-10-2024
Add ability to pass additional parameters to ollama library
2024-10-28 19:10:41 +02:00
Andrii Lazarchuk
6b80237805 Update README with more details 2024-10-28 19:05:59 +02:00
Andrii Lazarchuk
84b60e4aa6 Fix lint issue 2024-10-28 17:05:38 +02:00