858 Commits

Author SHA1 Message Date
luohuanhuan2019
36c7abf358 Remove garbled characters from system prompt words 2025-01-16 21:35:37 +08:00
yangdx
ac11a7192e revert changeds make by mistake 2025-01-16 21:04:45 +08:00
yangdx
d15753d51a Merge branch 'main' into yangdx 2025-01-16 20:20:09 +08:00
yangdx
95ff048a9e 为Ollama API添加性能统计功能
- 新增token估算函数
- 记录流式响应时间
- 计算输入输出token数
- 统计响应生成时间
- 返回详细的性能指标
2025-01-16 19:42:34 +08:00
zrguo
d7cfe029eb
Update __init__.py 2025-01-16 14:24:29 +08:00
zrguo
b84aab5cd0
Merge pull request #590 from jin38324/main
Enhance Robustness of insert Method with Pipeline Processing and Caching Mechanisms
2025-01-16 14:20:08 +08:00
Gurjot Singh
0265c2359c
Merge branch 'HKUDS:main' into feature-implementation 2025-01-16 10:53:01 +05:30
jin
6ae8647285 support pipeline mode 2025-01-16 12:58:15 +08:00
jin
d5ae6669ea support pipeline mode 2025-01-16 12:52:37 +08:00
jin
17a2ec2bc4
Merge branch 'HKUDS:main' into main 2025-01-16 09:59:27 +08:00
yangdx
5e4c9dd4d7 移除api server 对 lightrag-hku 的依赖(解决非编辑调试方式安装无法启动api服务的问题) 2025-01-16 03:26:47 +08:00
yangdx
ae9e37a120 Merge remote-tracking branch 'origin/main' into yangdx 2025-01-16 01:50:46 +08:00
yangdx
ea22d62c25 移除调试日志打印代码 2025-01-15 23:11:15 +08:00
yangdx
9632a8f0dc 解决查询命中缓存时流式响应未遵循Ollma规范的问题
- rag返回结果未字符串时,响应分两次发送
- 第一次发送查询内容
- 第二次发送统计信息
2025-01-15 23:09:50 +08:00
yangdx
ca2caf47bc 修改流式响应的输出格式:从event-stream改为x-ndjson 2025-01-15 22:14:57 +08:00
yangdx
6d44178f63 修复测试用例流结束判断 2025-01-15 21:26:20 +08:00
yangdx
af9ac188f0 增强聊天接口的调试和性能统计功能
- 添加原始请求日志记录
- 修改响应结构以包含性能统计
- 更新测试用例以展示性能数据
- 优化响应格式为字典结构
- 增加请求体解码功能
2025-01-15 21:15:12 +08:00
yangdx
8ef1248c76 将OllamaChatRequest的stream参数默认值改为True 2025-01-15 20:54:22 +08:00
yangdx
f81b1cdf0a 为Ollama API返回结果添加图像字段和性能统计信息
- 在OllamaMessage中添加images字段
- 响应消息中增加images字段
- 完成标记中添加性能统计信息
- 更新测试用例以处理性能统计
- 移除测试用例中的/naive前缀
2025-01-15 20:46:45 +08:00
yangdx
23f838ec94 优化流式响应处理并添加测试用例
- 修复流式响应中的完成标记逻辑
- 添加非流式调用测试
- 添加流式调用测试
- 优化JSON序列化,支持非ASCII字符
- 确保生成器在完成标记后立即结束
2025-01-15 20:18:17 +08:00
yangdx
f15f97a51d 临时保存 2025-01-15 19:32:03 +08:00
yangdx
828af49d6b 能够正确调用rag,rag执行完成后,无法返回内容 2025-01-15 18:47:01 +08:00
yangdx
4e5517a602 修复rag调用参数不正确问题 2025-01-15 18:27:35 +08:00
yangdx
882da88603 解决模型名称返回错误问题 2025-01-15 18:19:39 +08:00
yangdx
fd50c3a240 修改流处理逻辑,修改 /api/tags错误 2025-01-15 17:43:00 +08:00
yangdx
c1f4f4a20e 优化ollama返回数据的格式 2025-01-15 15:06:28 +08:00
yangdx
be134878fe 完成ollma接口的代码编写 2025-01-15 14:31:49 +08:00
yangdx
b97d1ecd72 修改文件名 2025-01-15 13:35:20 +08:00
yangdx
9bfba88600 准备增加ollama服务 2025-01-15 13:32:06 +08:00
yangdx
da91510363 修改server启动命令 2025-01-15 13:14:09 +08:00
Samuel Chan
2b7d253117 Merge remote-tracking branch 'origin/main' 2025-01-15 12:09:05 +08:00
Samuel Chan
d91a330e9d Enrich README.md for postgres usage, make some change to cater python version<12 2025-01-15 12:02:55 +08:00
yangdx
1088e10fb2 修改lightrag_server的LLM和Embedding配置 2025-01-15 10:44:12 +08:00
Saifeddine ALOUI
29661c92da fixed linting 2025-01-14 23:11:23 +01:00
Saifeddine ALOUI
c3aba5423f Added more file types support 2025-01-14 23:08:39 +01:00
Gurjot Singh
bc79f6650e Fix linting errors 2025-01-14 22:23:14 +05:30
Gurjot Singh
ef61ffe444 Add custom function with separate keyword extraction for user's query and a separate prompt 2025-01-14 22:10:47 +05:30
zrguo
61349b0fe7
Merge pull request #581 from jiabin2wang20230918/fix_mongo
Fix for mongoDB document 16MB limit and add os env NEO4J_MAX_CONNECTION_POOL_SIZE for neo4j
2025-01-13 18:38:22 +08:00
bingo
1984da0fd6 add logger.debug for mongo_impl get_by_mode_and_id() 2025-01-13 07:27:30 +00:00
bingo
f28b90b2b3 1. add os env NEO4J_MAX_CONNECTION_POOL_SIZE to for neo4j ;
2. fix https://github.com/HKUDS/LightRAG/issues/580 issue for mongoDB document 16MB limit.
2025-01-13 07:06:01 +00:00
zrguo
057e23c4e9
Update __init__.py 2025-01-13 10:13:01 +08:00
zrguo
9f48124a69
Merge pull request #576 from ShanGor/main
Revise the AGE implementation on get_node_edges, to align with Neo4j behavior.
2025-01-13 09:29:01 +08:00
Samuel Chan
c016934021 Revise the AGE implementation on get_node_edges, to align with Neo4j behavior. 2025-01-12 21:38:39 +08:00
Saifeddine ALOUI
7aaab219ee Fixed awaiting insert 2025-01-12 12:56:08 +01:00
Saifeddine ALOUI
5c67938467 Resolve 500 error caused by missing len() for LightRAG's API insert_text endpoint 2025-01-12 12:46:23 +01:00
zrguo
a2e96b67e9
Merge pull request #570 from ShanGor/main
Revise the AGE usage for postgres_impl
2025-01-12 13:23:06 +08:00
Samuel Chan
1998a5b204 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	README.md
2025-01-11 10:40:09 +08:00
Samuel Chan
d03d6f5fc5 Revised the postgres implementation, to use attributes(node_id) rather than nodes to identify an entity. Which significantly reduced the table counts. 2025-01-11 09:30:19 +08:00
Saifeddine ALOUI
224fce9b1b run precommit to fix linting issues 2025-01-11 01:37:07 +01:00
Saifeddine ALOUI
e0e656ab01 Added ssl support 2025-01-11 01:35:49 +01:00