Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat : GitLab Document Reader , close #279 #369

Merged
merged 7 commits into from
Jan 16, 2025

Conversation

brianxiadong
Copy link
Contributor

🌟 Features / 功能特性

English

  • Implements a new document reader for GitLab repository integration
  • Supports reading files from GitLab repositories with flexible filtering
  • Provides comprehensive metadata handling for repository files
  • Includes recursive directory traversal capabilities
  • Follows Spring AI's document reader interface standards

中文

  • 实现了新的 GitLab 仓库文档阅读器集成
  • 支持从 GitLab 仓库读取文件,提供灵活的过滤机制
  • 提供完整的仓库文件元数据处理
  • 包含递归目录遍历功能
  • 遵循 Spring AI 的文档阅读器接口标准

🔍 Implementation Details / 实现细节

English
The GitLab Document Reader:

  • Uses gitlab4j-api for repository interaction
  • Converts repository files to Spring AI Document objects
  • Supports glob pattern-based file filtering
  • Implements branch/tag/commit-specific reading
  • Includes comprehensive error handling
  • Features complete unit test coverage

中文
GitLab 文档阅读器:

  • 使用 gitlab4j-api 进行仓库交互
  • 将仓库文件转换为 Spring AI Document 对象
  • 支持基于 glob 模式的文件过滤
  • 实现分支/标签/提交特定的读取
  • 包含完整的错误处理机制
  • 具有完整的单元测试覆盖

🔄 Changes / 变更说明

English

  • Added new GitLab repository document reader implementation
  • Created comprehensive documentation and examples
  • Added unit tests for core functionality
  • Implemented flexible file filtering mechanism
  • No breaking changes to existing functionality

中文

  • 添加了新的 GitLab 仓库文档阅读器实现
  • 创建了完整的文档和示例
  • 为核心功能添加了单元测试
  • 实现了灵活的文件过滤机制
  • 不影响现有功能

📋 Checklist / 检查清单

  • Code follows project style guidelines / 代码遵循项目风格指南
  • Documentation is updated / 文档已更新
  • Tests are added / 测试已添加
  • All tests pass / 所有测试通过
  • PR description is clear / PR 描述清晰

close #279

@brianxiadong brianxiadong changed the title FEAT : GitLab Document Reader , close #279 Feat : GitLab Document Reader , close #279 Jan 14, 2025
@chickenlj chickenlj merged commit 60ff539 into alibaba:main Jan 16, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add document reader code platform gitlab
2 participants