Skip to content

Releases: OpenSPG/openspg

Version 0.8.0

29 Jun 02:12
ceeb3ef
Compare
Choose a tag to compare

Version 0.8.0 (2025-06-27)

1、Overview

We are excited to announce the official release of KAG version 0.8. This update focuses on continuously enhancing the consistency, rigor, and accuracy of large model knowledge base-driven reasoning and question-answering. It also introduces several significant new features and capabilities.
First, we have upgraded the capabilities of the KAG knowledge base. We have expanded support for two modes: private domain knowledge bases (including structured and unstructured data) and public domain knowledge bases. This includes the ability to integrate public web data sources such as LBS and WebSearch via the MCP protocol. Additionally, we have improved the management of private domain knowledge base indexing, incorporating multiple foundational index types such as Outline, Summary, KnowledgeUnit, AtomicQuery, Chunk, and Table. This supports developers in customizing indexes and synchronizing them with product interfaces. Users can select the most appropriate index type based on their specific scenarios, achieving a balance between construction costs and business outcomes.
Second, we have optimized the product experience and refined the system integration interfaces. On the product front, we have decoupled the knowledge base from applications. The knowledge base now manages private domain data (both structured and unstructured) and public domain data, while applications can link to multiple knowledge bases. Based on the index types used during knowledge base construction, the system automatically adapts the corresponding retrieval engine to recall data. Both applications and knowledge bases independently manage model dependencies and task scheduling, enhancing flexibility.
In terms of system integration, we have refined the KAG recall and Q&A interfaces, adding support for embedding reasoning and Q&A pages within business applications. We have fully embraced the MCP protocol, enabling seamless integration of KAG reasoning and Q&A into agent workflows (based on the MCP protocol).
Third, KAG has successfully adapted to the KAG-Thinker model. Through optimizations such as broad decomposition and deep solving of complex problems, knowledge boundary determination, and noise-resistant retrieval results, the stability of the KAG framework's reasoning paradigm and the rigor of its reasoning logic have been significantly improved under the guidance of iterative thinking paradigms. Further details on the release and usage of the KAG-Thinker model will be provided in our upcoming announcements.
In addition to the aforementioned framework and product optimizations, we have also enhanced Q&A efficiency and the stability of streaming outputs. This update is based on the Qwen2.5-72B foundation model and has achieved performance alignment across various RAG frameworks and selected KG datasets. The overall benchmark results of this release are illustrated in Figures 1~3, with detailed metrics available in the open_benchmark section.

2、Framework Enhancements

2.1、Configurable Index Management

Index extraction and retrieval are core capabilities of knowledge base applications. KAG v0.8 has upgraded its architecture to support configurable management of index construction and retrieval. Each index type is equipped with its own extractor (Extractor) and retriever (Retriever), managed through the IndexManager.
KAG comes with built-in foundational index types such as KnowledgeUnit (an enhanced version of graph triples), Outline, Summary, Chunk, AtomicQuery, and Table, along with their corresponding extractors and retrievers. During the knowledge base construction phase, the platform invokes the appropriate extractor based on the index types selected by the user to perform index extraction. In the application phase, based on the knowledge bases associated with the application, the platform automatically calls the corresponding retriever to complete the recall of graph/chunk/doc data and integrates with the KAG-Solver pipeline to enable reasoning and question-answering.
Developers can extend the IndexManager to implement or combine custom extractors and retrievers. After packaging KAG with these custom components and replacing the corresponding installation package in the openspg-server image, users can select the custom index types on the product page during knowledge base construction. This enables seamless integration of custom index types with the product.

3、Product and platform optimization

3.1、System Integration

This release offers three methods to integrate KAG into business systems: HttpAPI, MCP Protocol, and Frontend Page Embedding.
The KAG HttpAPI provides two types of interfaces: recall and reasoning & Q&A. Developers can choose to use KAG as a retrieval source or as a complete reasoning and Q&A capability.
The KAG MCP Protocol offers interfaces for reasoning and Q&A, which can be embedded into agent applications like Cursor.
In this release, the reasoning and Q&A functionality has been upgraded to an independent page, allowing developers to embed this page into their business systems.

3.2、User Experience Optimization

This release addresses several community concerns, including response latency, streaming output stability, model configuration management, and task scheduling reliability. We greatly appreciate the community's support and patience with KAG.

4、Future Plans

In upcoming versions, we will continue to focus on enhancing large models' ability to leverage external knowledge bases. Our goal is to achieve bidirectional enhancement and seamless integration between large models and symbolic knowledge, improving the factuality, rigor, and consistency of reasoning and Q&A in professional scenarios. We will also keep releasing updates to push the boundaries of capability and drive adoption in vertical domains.

Version 0.7.1

25 Apr 08:24
Compare
Choose a tag to compare

Version 0.7.1 (2025-04-25)

Dear Open Source Community,We are excited to officially announce the release of version 0.7.1 for OpenSPG/KAG! This release represents the collaborative efforts of both our core technical team and contributors from the global open source community. The update focuses on improving user experience, optimizing system performance, and addressing key issues based on your feedback. Below are the highlights of this release:

🛠️ Fixes & Optimization Highlights:

  1. Resolved source code compilation errors: Fixed NoSuchBeanDefinitionException issues during openspg compilation to ensure a smooth development experience.
  2. Enhanced error diagnostics: Resolved the issue where timeout errors for vectorizer calls couldn't be traced, enabling quicker troubleshooting.
  3. Improved task performance: Optimized small task construction times by adjusting the scheduling interval, allowing asynchronous tasks to trigger immediately without waiting.
  4. Enhanced container stability: Fixed the issue where container restarts caused scheduling states to hang or crash.
  5. Reasoning Q&A Stream output optimization: Improved the responsiveness and fluidity of streaming outputs for Reasoning Q&A scenarios.
  6. Task details page upgrades: Added auto-refresh capabilities for logs and time cost statistics, allowing users to monitor system and task performance in real time.
  7. Simplified task splitting configuration: Disable the semantic segmentation module to avoid excessive token consumption caused by misoperations.
  8. Website updates: Added a new partner showcase section to the homepage and included a redirect to the OpenKG official website to foster collaborative opportunities.
  9. Bug fixes and product optimization: Implemented multiple fixes and refinements to address reported issues, enhancing product stability.

🌟 Join Our Community

The OpenSPG community thrives on collective wisdom and the shared mission of advancing open-source technology. We warmly invite you to contribute, share your insights, and collaborate on exciting projects. For more details about this release and user guides, please visit our official website.

Thank you for your continued support and enthusiasm for OpenSPG! If you have questions or suggestions, feel free to reach out through our community channels or via email.


Version 0.7.1 (2025-04-25)

亲爱的开源社区伙伴们,非常高兴地宣布 OpenSPG/KAG 发布了最新版本 0.7.1!这一版本是我们的技术团队与社区开发者们共同努力的成果,其目标旨在提升用户体验、优化性能,并解决用户反馈的若干问题。以下是本次版本更新的核心内容概要:

🛠️ 问题修复 & 功能优化

  1. 修复源码编译问题:解决 openspg 编译时可能遇到的 NoSuchBeanDefinitionException 报错问题,确保开发者可以顺利构建项目。
  2. 诊断优化:解决 vectorizer 调用超时异常信息无法透出的问题,帮助用户快速定位故障原因。
  3. 任务性能提升:优化小任务构建耗时,将任务调度间隔调整为更高效的频率,同时确保异步任务在无需等待的条件下立即触发。
  4. 镜像稳定性提升:解决镜像重启时调度状态异常卡死的问题,增强运行环境的稳定性。
  5. 推理问答流式输出优化:显著改善推理问答场景中流式输出的慢速和卡顿问题,提供更流畅的用户体验。
  6. 任务详情页面增强:新增日志自动刷新功能和任务耗时统计,帮助用户实时监控系统状态和任务性能。
  7. 构建任务切分调整:下线语义化切分的选项,避免误操作带来的大量tokens 消耗
  8. 官网功能更新:为官网主页新增合作伙伴信息板块,同时添加 OpenKG 官网跳转链接以促进资源共享。
  9. Bug修复和产品优化:针对社区反馈的问题做出多项功能修复与细节优化,提高整体产品的稳定性。

🌟 加入我们的社区

我们的开源社区凝聚了多方智慧,推动了开源技术的发展。我们诚挚邀请您参与项目的共建,共同探索更优秀的解决方案。有关本次更新的更多信息和操作指南,请访问 官网

感谢您对 OpenSPG 的关注和支持!如果有任何问题或建议,欢迎通过社区或邮件与我们联系。

Version 0.7

17 Apr 09:04
Compare
Choose a tag to compare

Version 0.7 (2025-04-17)

1、Overview

We are very pleased to announce the release of KAG 0.7. This update continues our commitment to increasing the consistency, rigor, and precision of large language models leveraging external knowledge bases, while introducing several important new features.

Firstly, we have completely refactored the framework. The update adds support for both static and iterative task planning modes, along with a more rigorous hierarchical knowledge mechanism during the reasoning phase. Additionally, the new multi-executor extension mechanism and MCP protocol integration enable horizontal scaling of various symbolic solvers (such as math-executor and cypher-executor). These improvements not only help users quickly build knowledge-augmented applications to validate innovative ideas or domain-specific solutions, but also support continuous optimization of KAG Solver's capabilities, thereby further enhancing reasoning rigor in vertical applications.

Secondly, we have comprehensively optimized the product experience: during the reasoning phase, we introduced dual modes "Simple Mode" and "Deep Reasoning" and added support for streaming reasoning output, significantly reducing user wait times. Particularly noteworthy is the introduction of the "Lightweight Construction" mode to better facilitate the large-scale business application of KAG and address the community's most pressing concern about high knowledge construction costs. As shown in the KAG-V0.7LC column of Figure 1, we tested a hybrid approach where a 7B model handles knowledge construction and a 72B model handles knowledge-based question answering. The results on the two_wiki, hotpotqa, and musique benchmarks showed only minor declines of 1.20%, 1.90%, and 3.11%, respectively. However, the token cost(Refer to Aliyun Bailian pricing)for constructing a 100,000-character document was reduced from 4.63¥ to 0.479¥, a 89% reduction, which substantially saves users both time and financial costs. Additionally, we will release a KAG-specific extraction model and a distributed offline batch construction version, continuously compressing model size and improving construction throughput to achieve daily construction capabilities for millions or even tens of millions of documents in a single scenario.

Finally, to better promote business applications, technological advancement, and community exchange for knowledge-augmented LLMs, we have added an open_benchmark directory at the root level of the KAG repository. This directory includes reproduction methods for various datasets to help users replicate and improve KAG's performance across different tasks. Moving forward, we will continue to expand with more vertical scenario task datasets to provide users with richer resources.

Beyond these framework and product optimizations, we've fixed several bugs in both reasoning and construction phases. This update uses Qwen2.5-72B as the base model, completing effect alignment across various RAG frameworks and partial KG datasets. For overall benchmark results, please refer to Figures 1 and 2, with detailed rankings available in the open_benchmark section.

Figure1. Performance of KAG V0.7 and baselines on Multi-hop QA benchmarks

_Figure2. Performance of KAG V0.7 and baselines(from OpenKG OneEval) on _Knowledge based QA benchmarks

2、Framework Enhancements

2.1、Hybrid Static-Dynamic Task Planning

This release introduces optimizations to the KAG-Solver framework implementation, providing more flexible architectural support for: "Retrieval during reasoning" workflows, Multi-scenario algorithm experimentation, LLM-symbolic engine integration (via MCP protocol).

The framework's Static/Iterative Planner transforms complex problems into directed acyclic graphs (DAGs) of interconnected Executors, enabling step-by-step resolution based on dependency relationships. We've implemented built-in Pipeline support for both Static and Iterative Planners, including a predefined NaiveRAG Pipeline - offering developers customizable solver chaining capabilities while maintaining implementation flexibility.

画板

2.2、Extensible Symbolic Solvers

Leveraging LLM's FunctionCall capability, we have optimized the design of symbolic solvers (Executors) to enable more rational solver matching during complex problem planning. This release includes built-in solvers such as kag_hybrid_executor, math_executor, and cypher_executor, while providing a flexible extension mechanism that allows developers to define custom solvers for personalized requirements.

2.3、Optimized Retrieval/Reasoning Strategies

Using the enhanced KAG-Solver framework, we have rewritten the logic of kag_hybrid_executor to implement a more rigorous knowledge layering mechanism during reasoning. Based on business requirements for knowledge precision and following KAG's knowledge hierarchy definition, the system now sequentially retrieves three knowledge layers: image(schema-constrained), image (schema-free), andimage (raw context), subsequently performing reasoning to generate answers.

画板

2.4、MCP Protocol Integration

This KAG release achieves compatibility with the MCP protocol, enabling the incorporation of external data sources and symbolic solvers into the KAG framework via MCP. We have included a baidu_map_mcp example in the example directory for developers' reference.

3、OpenBenchmark

To better facilitate academic exchange and accelerate the adoption and technological advancement of large language models with external knowledge bases in enterprise settings, KAG has released more detailed benchmark reproduction steps in this version, along with open-sourcing all code and data. This will enable developers and researchers to easily reproduce and align results across various datasets.

For more accurate quantification of reasoning performance, we have adopted multiple evaluation metrics, including EM (Exact Match), F1, and LLM_Accuracy. In addition to existing datasets such as TwoWiki, Musique, and HotpotQA, this update introduces the OpenKG OneEval knowledge graph QA dataset (including AffairQA and PRQA) to evaluate the capabilities of both the cypher_executor and KAG's default framework.

Building benchmarks is a time-consuming and complex endeavor. In future work, we will continue to expand benchmark datasets and provide domain-specific solutions to further enhance the accuracy, rigor, and consistency of large models in leveraging external knowledge. We warmly invite community members to collaborate with us in advancing the KAG framework's capabilities and real-world applications across diverse tasks.

3.1、Multi-hop QA Dataset

3.1.1、benchMark

  • musique
Method em f1 llm_accuracy
Naive Gen 0.033 0.074 0.083
Naive RAG 0.248 0.357 0.384
HippoRAGV2 0.289 0.404 0.452
PIKE-RAG 0.383 0.498 0.565
KAG-V0.6.1 0.363 0.481 0.547
KAG-V0.7LC 0.379 0.513 0.560
KAG-V0.7 0.385 0.520 0.579
  • hotpotqa
Method em f1 llm_accuracy
Naive Gen 0.223 0.313 0.342
Naive RAG 0.566 0.704 0.762
HippoRAGV2 0.557 0.694 0.807
PIKE-RAG 0.558 0.686 0.787
KAG-V0.6.1 0.599 0.745 0.841
KAG-V0.7LC 0.600 0.744 0.828
KAG-V0.7 0.603 0.748 0.844
  • twowiki
Method em f1 llm_accuracy
Naive Gen 0.199 0.310 0.382
Naive RAG 0.448 0.512 0.573
HippoRAGV2 0.542 0.618 0.684
PIKE-RAG 0.63 0.72 0.81
KAG-V0.6.1 0.666 0.755 0.811
KAG-V0.7LC 0.683 0.769 0.826
KAG-V0.7 0.684 0.770 0.836

3.1.2、params for each method

Method dataset LLM(Build/Reason) embed param
Naive Gen 10k docs、1k questions provided by HippoRAG qwen2.5-72B bge-m3
Naive RAG same as above qwen2.5-72B bge-m3 num_docs: 10
HippoRAGV2 same as above qwen2.5-72B bge-m3 retrieval_top_k=200
linking_top_k=5
max_qa_steps=3
qa_top_k=5
graph_type=facts_and_sim_passage_node_unidirectional
embedding_batch_size=8
PIKE-RAG same as above qwen2.5-72B bge-m3 tagging_llm_temperature: 0.7
qa_llm_temperature: 0.0
chunk_retrieve_k: 8
chunk_retrieve_score_threshold: 0.5
atom_retrieve_k: 16
atomic_retrieve_score_threshold: 0.2
max_num_question: 5
num_parallel: 5
KAG-V0.6.1 same as above qwen2.5-72B bge-m3 refer to the kag_config.yaml files in each subdirectory under https://github.com/OpenSPG/KAG/tree/v0.6/kag/examples.
KAG-V0.7 same as above qwen2.5-72B bge-m3 refer to the kag_config.yaml files in each subdirectory under [https://github.com/OpenSPG/KAG/tree/maste...
Read more

Version 0.6

08 Jan 03:24
e53b20a
Compare
Choose a tag to compare

Version 0.6 (2025-01-07)

On January 7, 2025, OpenSPG officially released version 0.6, bringing updates across multiple areas, including domain knowledge mounting, vertical domain schema management, visual knowledge exploration, and support for summary generation tasks. In terms of user experience, it offers a mechanism for resuming knowledge base tasks from breakpoints, introduces a user login and permission system, and optimizes task scheduling for building processes. In developer mode, it supports configuring different models for different stages and enables schema-constraint mode for extraction, significantly enhancing the system's flexibility, usability, performance, and security. This release provides users with a more powerful knowledge management platform that adapts to diverse application scenarios.


🌟 New Features

  1. Support for Summary Generation Tasks

    • Native support for abstractive summarization tasks without sacrificing multi-hop factual reasoning accuracy. On the CSQA dataset, while comprehensiveness, diversity, and empowerment metrics are slightly lower than LightRAG (-1.2/10), the factual accuracy metric is better than LightRAG (+0.1/10). On multi-hop question answering datasets such as HotpotQA, TwoWiki, and MuSiQue, since LightRAG and GraphRAG do not provide a factual QA evaluation entry, the EM metric using the default entry is close to 0. For quantitative evaluation results, please refer to the KAG code repository under examples/csqa/README.md and follow the steps to reproduce.
  2. Domain Schema Management

    • The product provides SPG schema management capabilities, allowing users to optimize knowledge base construction and inference Q&A performance by customizing schemas.
  3. Knowledge Exploration

    • Added a knowledge exploration feature to enable visual query and analysis of knowledge base data, and provided an HTTP API for integration with other systems.
  4. Support for Mounting Domain Knowledge in KAG-Builder(Developer Mode)

    • In developer mode, the system supports injecting domain knowledge (domain vocabulary, relationships between terms) into the knowledge base, which can significantly improve knowledge base construction and inference Q&A performance (with a 10%+ improvement in the medical domain).
  5. Adding Knowledge Alignment Component to the KAG-Builder Pipeline

    • Kag-Builder provides a default knowledge alignment component that includes features such as filtering out invalid data and linking similar entities. This optimizes the structure and data quality of the graph.

⚙️ User Experience Optimizations

  1. Resumable Tasks

    • Provide resumable capabilities for knowledge base construction tasks at the file level and chunk level in both product mode and developer mode, to reduce the time and token consumption caused by full re-runs after task failures.
  2. User Login & Permission System

    • Implement a user login and permission system to prevent unauthorized access and operations on the knowledge base data.
  3. Optimized Knowledge Base Construction Task Scheduling

    • Provide database-based knowledge base construction task scheduling to avoid task anomalies or interruptions after container restarts.
  4. Support for Configuring Different Models at Different Stages (Developer Mode)

    • The system provides a component management mechanism based on a registry, allowing users to instantiate component objects via configuration files. This supports users in developing and embedding custom components into the KAG-Builder and KAG-Solver workflows. Additionally, it enables the configuration of different-sized models at different stages of the workflow, thereby enhancing the overall reasoning and question-answering performance.
  5. Optimization of Layout Analysis for Markdown, PDF, and Word Files

    • For Markdown, PDF, and Word files, the system prioritizes dividing the content into chunks based on the file's sections. This ensures that the content within each chunk is more cohesive.**
  6. Global Configuration and Knowledge Base Configuration

    • Provide global configuration for the knowledge base, allowing unified settings for storage engines, generation models, and representation model access information.
  7. Support for Schema-Constrained Extraction and Linking (Developer Mode)

    • Provide a schema-constraint mode that strictly adheres to schema definitions during the knowledge base construction phase, enabling finer-grained and more complex knowledge extraction.

Version 0.6 (2025-01-07)

2025 年 1 月 7 日,OpenSPG 正式发布 v0.6 版本,此次发布带来多方面更新,包括领域知识挂载、垂域schema 管理、可视化知识探查、摘要生成类任务支持等;用户体验上,提供知识库任务的断点续跑机制,新增用户登录与权限体系、优化构建任务调度;开发者模式下支持不同阶段配置不同模型、支持 schema-constraint 模式抽取等,极大地提升了系统的灵活性、易用性、性能和安全性,为用户提供了一个更加强大且适应多样化应用场景的知识管理平台。


🌟 新增功能

  1. 摘要生成类任务支持

    • 不牺牲多跳事实推理精度的情况下,原生支持摘要生成任务。
      在CSQA 数据集上,全面性、多样性、赋权性 等指标弱于LightRAG (-1.2/10)情况下,事实性指标优于 LightRAG(+0.1/10);在hotpotqa, twowiki, musique 等多跳问答数据集上,鉴于LightRAG & GraphRAG均未提供事实问答的测评入口,使用默认入口测试EM指标接近0。
      KAG 量化评测结果,可参考 KAG 代码仓库 examples/csqa/READEME.md 按步骤复现。
  2. 领域 Schema 管理

    • 产品侧提供spg schema 管理能力,支持用户根据通过自定义schema 以优化知识库构建&推理问答的效果。
  3. 知识探查

    • 新增知识探查功能,实现知识库数据的可视化查询分析,并提供HttpAPI 与其它系统对接。
  4. 知识库构建支持挂载领域知识 (开发者模式)

    • 开发者模式下,支持将领域知识(领域词汇、词条间关系)注入知识库中,可显著提升知识库构建、推理问答效果(医疗场景下有10%+ 的提升)。
  5. 构建链路增加知识对齐组件

    • Kag-Builder 提供默认的知识对齐组件,并内嵌无效数据过滤、相似实体链指等功能,以优化图谱的结构和数据质量。

⚙️ 用户体验优化

  1. 断点续跑

    • 产品模式、开发者模式下,分别提供文件级别、Chunk 级别的知识库构建任务的断点续跑能力,以降低任务失败后全量重跑所带来的时间和tokens 消耗。
  2. 用户登录&权限体系

    • 提供 用户登录&权限体系,防止未经授权的知识库数据访问和操作。
  3. 知识库构建任务调度优化

    • 提供基于数据库的知识库构建任务调度能力,避免容器重启后任务异常或者中断。
  4. 支持不同阶段配置不同模型(开发者模式)

    • 提供基于注册器的组件管理机制,允许用户通过配置文件实例化组件对象,支持用户开发&嵌入自定义组件到KAG-Builder、KAG-Solver 工作流 中,同时在工作流的不同阶段配置不同规模的大模型,以提升整体的推理问答性能。
  5. Markdown、PDF、Word 文件版面分析优化

    • Markdown、pdf、word 等文件优先根据文件章节划分Chunk,以实现同一chunk 的内容更内聚。
  6. 项目全局配置及知识库配置

    • 提供知识库全局配置功能,统一设置存储引擎、生成模型、表示模型的访问信息。
  7. 支持 schema-constraint 模式的抽取链接(开发者模式)

    • 提供schema-constraint 模式,知识库构建阶段,严格按照 Schema 的定义进行操作,从而实现更细粒度和更复杂的知识抽取。

Version 0.5.1

22 Nov 06:01
918a1fb
Compare
Choose a tag to compare

Version 0.5.1 (2024-11-21)

OpenSPG released version v0.5.1 on November 21, 2024. This version focuses on addressing user feedback and introduces a series of new features and user experience optimizations.


🌟 New Features

  1. Support for Word Documents
    • Users can now directly upload .doc or .docx files to streamline the knowledge base construction process.
  1. New Project Deletion API
    • Quickly clear and delete projects and related data through an API, compatible with the latest Neo4j image version.
  2. Model Call Concurrency Setting
    • Added the builder.model.execute.num parameter, with a default concurrency of 5, to improve efficiency in large-scale knowledge base construction.
  1. Improved Logging
    • Added a startup success marker in the logs to help users quickly verify if the service is running correctly.

⚙️ User Experience Optimizations

  1. Neo4j Memory Overflow Issues
    • Addressed memory overflow problems in Neo4j during large-scale data processing, ensuring stable operation for extensive datasets.
  2. Concurrent Neo4j Query Execution Issues
    • Optimized execution strategies to resolve Graph Data Science (GDS) library conflicts or failures in high-concurrency scenarios.
  3. Schema Preview Prefix Issue
    • Fixed issues where extracted schema preview entities lacked necessary prefixes, ensuring consistency between extracted entities and predefined schemas.
  4. Default Neo4j Password for Project Creation/Modification
    • Automatically fills a secure default password if none is specified during project creation or modification, simplifying the configuration process.
  5. Frontend Bug Fixes
    • Resolved issues with JS dependencies relying on external addresses and embedded all frontend files into the image. Improved the knowledge base management interface for a smoother user experience.
  6. Empty Node/Edge Type in Neo4j Writes
    • Enhanced writing logic to handle empty node or edge types during knowledge graph construction, preventing errors or data loss in such scenarios.

Version 0.5.1 (2024-11-21)

OpenSPG 在 2024 年 11 月 21 日发布了 v0.5.1 版本。此版本重点解决了用户反馈的问题,并带来了一系列新功能和用户体验的优化。

🌟 新增功能

  1. 支持 word 文档的构建
    • 用户现可通过知识库管理页面直接上传 .doc 或 .docx 后缀的文件,进行知识库的构建流程。这一更新使得知识内容的导入更加便捷,提高效率。
  1. 提供项目删除接口
    • 为了帮助用户更高效地管理项目,我们新增了一个项目删除接口。用户可以通过访问 http://127.0.0.1:8887/project/api/delete?projectId=xx 完成项目的快速清空与删除操作。该接口会同步清理项目下的所有schema、知识库任务、知识库问答任务以及关联的 Neo4j 数据库。
      Tips:使用此功能前,需确保已将 openspg-neo4j 镜像更新至最新版本
  2. 支持模型调用并发度设置
    • 在大规模知识库构建过程中,为了提高构建效率,我们引入了模型调用的并发控制机制。用户可以通过设置 builder.model.execute.num 参数来调整并发数量,默认值设定为5。这有助于避免因模型服务性能瓶颈而导致的任务失败或系统卡顿。
  1. 日志中添加启动成功标识
    • 为了让用户能够更直观地判断 OpenSPG 服务是否启动成功,我们在日志输出中加入了明确的启动成功标识。openspg-server 成功启动后,会输出这一标识。

⚙️ 用户体验优化

  1. 解决大规模数据构建下 Neo4j 调用内存超限问题
    • 针对在处理大规模数据集时出现的 Neo4j 内存溢出问题,我们进行了深入分析并实施了有效的解决方案。现在,面对大规模数据集Neo4j 能保持稳定运行,有效防止了因内存不足而导致的服务中断。
  2. 解决多并发下执行 Neo4j 查询导致的 GDS 加载问题
    • 在多并发场景下执行 Neo4j 查询时,图数据科学 (GDS) 库的加载会出现冲突或失败的情况。为此,我们优化了查询执行策略,确保了在高并发环境下的查询性能和稳定性。
  3. 解决抽取结果 Schema 预览实体无前缀问题
    • 在之前版本中,部分用户反馈在查看抽取结果的 Schema 预览时,实体名称缺少必要的前缀信息导致抽取的实体和预定义的Schema不一致。此次更新修正了这一问题,保证了所有实体名称的完整性和准确性。
  4. 创建修改项目时 Neo4j 无密码时填充默认值
    • 当用户在创建或修改项目时,如果未指定 Neo4j 密码,系统将自动填充一个安全的默认值,从而简化了配置流程,减少了用户的输入负担。
  5. 前端 bugfix
    • 修复了JS依赖外部地址问题,已将前端文件全部内置到镜像内;同时针对知识库管理页面进行了多项改进,以提供更加流畅的操作体验。
  6. 解决点边类型为空导致的 Neo4j 写入失败问题
    • 对于在构建知识图谱时可能出现的节点或关系类型为空的情况,我们优化了写入逻辑,确保即便在这些特殊情况下也能顺利完成数据的写入操作,避免了因类型缺失而引发的数据丢失或错误。

Version 0.5

04 Nov 07:14
0e687f7
Compare
Choose a tag to compare

Version 0.5 (2024-10-25)

retrieval Augmentation Generation (RAG) technology promotes the integration of domain applications with large models. However, RAG has problems such as a large gap between vector similarity and knowledge reasoning correlation, and insensitivity to knowledge logic (such as numerical values, time relationships, expert rules, etc.), which hinder the implementation of professional knowledge services. On October 25, OpenSPG released version V0.5, officially releasing the professional domain knowledge Service Framework for knowledge enhancement generation (KAG) .

Highlights of the Release Version:

1. KAG: Knowledge Augmented Generation

KAG aims to make full use of the advantages of Knowledge Graph and vector retrieval, and bi-directionally enhance large language models and knowledge graphs through four aspects to solve RAG challenges
(1) LLM-friendly semantic knowledge management
(2) Mutual indexing between the knowledge map and the original snippet.
(3) Logical symbol-guided hybrid inference engine
(4) Knowledge alignment based on semantic reasoning
KAG is significantly better than NaiveRAG, HippoRAG and other methods in multi-hop question and answer tasks. The F1 score on hotpotQA is relatively improved by 19.6, and the F1 score on 2wiki is relatively improved by 33.5

2. Knowledge base management

OpenSPG also provides a user-friendly product interface for KAG, allowing users to upload and manage documents, preview extraction results, and quiz through the visual interface after local deployment. In the knowledge question and answer session, the system not only shows the final answer, but also presents the reasoning process, thus enhancing the transparency and interpretability of the whole question and answer process. Through this product interface, users can use KAG more intuitively and easily

3. Continuous Optimization and Bug Fixes

  • feat(schema): support maintenance of simplified DSL in #335
  • feat(reasoner): support thinker in knext in #344
  • feat(reasoner): support ProntoQA and ProofWriter. in #352
  • feat(reasoner): thinker support deduction expression in #369
  • feat(openspg): support kag in #372
  • feat(reasoner): add udf split_part in #378
  • fix(reasoner): support triple in thinker context in #341
  • fix(reasoner): bugfix in graph store. in #346
  • fix(reasoner): fix pattern schema extra in #351
  • fix(knext): add remote client addr in #376
  • fix(knext): reasoner command add default cfg config in #377

Version 0.5 (2024-10-25)

检索增强生成(RAG)技术推动了领域应用与大模型结合。然而,RAG 存在着向量相似度与知识推理相关性差距大、对知识逻辑(如数值、时间关系、专家规则等)不敏感等问题,这些都阻碍了专业知识服务的落地。10 月 25 日,OpenSPG 发布 V0.5 版本,正式发布了知识增强生成(KAG)的专业领域知识服务框架

版本亮点

1. KAG 专业领域知识服务框架

KAG 旨在充分利用知识图谱和向量检索的优势,并通过四个方面双向增强大型语言模型和知识图谱,以解决 RAG 挑战
(1) 对 LLM 友好的语义化知识管理
(2) 知识图谱与原文片段之间的互索引
(3) 逻辑符号引导的混合推理引擎
(4) 基于语义推理的知识对齐
KAG 在多跳问答任务中显著优于 NaiveRAG、HippoRAG 等方法,在 hotpotQA 上的 F1 分数相对提高了 19.6%,在 2wiki 上的 F1 分数相对提高了33.5%

2. 知识库管理

OpenSPG针对KAG 还提供了一个用户友好的产品界面,支持用户在本地部署后,通过可视化界面进行文档上传和管理、预览抽取结果、以及知识问答。在知识问答环节,系统不仅展示最终答案,还会呈现推理过程,从而增强了整个问答流程的透明度和可解释性。通过这个产品界面,用户能够更直观、更轻松地上手使用 KAG

3. 持续优化与问题修复

  • feat(schema): support maintenance of simplified DSL in #335
  • feat(reasoner): support thinker in knext in #344
  • feat(reasoner): support ProntoQA and ProofWriter. in #352
  • feat(reasoner): thinker support deduction expression in #369
  • feat(openspg): support kag in #372
  • feat(reasoner): add udf split_part in #378
  • fix(reasoner): support triple in thinker context in #341
  • fix(reasoner): bugfix in graph store. in #346
  • fix(reasoner): fix pattern schema extra in #351
  • fix(knext): add remote client addr in #376
  • fix(knext): reasoner command add default cfg config in #377

Version 0.0.3

15 Aug 03:47
Compare
Choose a tag to compare

Version 0.0.3 (2024-08-15)

Knowledge graphs have become a crucial bridge between LLMs and AI Agents. the OpenSPG project officially released its first stable version. This release not only inherits all the powerful features of the previous beta version but also brings comprehensive improvements in stability, compatibility, and user experience, aiming to provide a more mature and reliable knowledge construction solution for enterprises and developers.

Highlights of the Release Version:

1. Unified Knowledge Extraction with LLMs

The first stable version of OpenSPG inherits and optimizes the unified knowledge extraction feature from the beta version.
This feature is based on OneKE, a Chinese-English bilingual knowledge extraction grand model jointly released by Ant Group and Zhejiang University. Through techniques like hard negative sampling and schema-rotation-based instruction construction, it enhances the generalization capability of structured information extraction.

2. Product Visualization Interface

The release further strengthens the visualization interface, offering users a more intuitive data exploration and analysis experience. You can now visually inspect modeling results on the page and conduct interactive analysis and reasoning queries.

3. Continuous Optimization and Bug Fixes

Bugfix 1: Initialization exception in knext builder (issue #236 #246)
Bugfix 2: Fixed error in reasoner transform ListOpExpr (#328)
Bugfix 3: Front-end canvas display issue in analysis reasoning (Issue #269)

The release version of OpenSPG is applicable to multiple domains, including but not limited to financial risk control, healthcare, enterprise knowledge management, and intelligent customer service. By constructing high-quality knowledge graphs, it empowers various application scenarios such as decision analysis, recommendation systems, and natural language understanding.

Version 0.0.3 (2024-08-15)

知识图谱已成为连接大模型与智能体的重要桥梁。OpenSPG 项目正式发布首个 Release 版本。这一版本承袭了此前 beta 版本的所有强大功能,在稳定性、兼容性和用户体验方面进行了全面提升,旨在为企业和开发者提供更加成熟可靠的知识构建解决方案。

版本亮点

1. 大模型统一知识抽取

OpenSPG 首个 Release 版本继承并优化了 beta 版本的大模型统一知识抽取功能。这一功能基于蚂蚁集团与浙江大学联合发布的 OneKE 大模型,专注于 Schema 可泛化的信息抽取,通过难负采样和 Schema 轮训式指令构造技术,提升了结构化信息抽取的泛化能力。

2. 产品可视化界面

Release 版本进一步强化了可视化界面,为用户提供了更加直观的数据探索和分析体验。用户现在可以在页面上直观地查看建模结果,并进行交互式分析推理查询。

3. 持续优化与问题修复

Bugfix 1:knext builder初始化异常 (issue #236 #246)
Bugfix 2:修复 reasoner transform ListOpExpr 报错 (#328)
Bugfix 3:分析推理前端画布展示问题 (Issue #269)

OpenSPG 的 Release 版本适用于多个领域,包括但不限于金融风控、医疗健康、企业知识管理、智能客服等,通过构建高质量的知识图谱,赋能决策分析、推荐系统、自然语言理解等多种应用场景。