Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 29, 2025

概述 / Overview

Adds OceanBase SeekDB as a vector database option for knowledge bases. Fixed embedded mode initialization to auto-create database when specifying custom database names.

Core Changes

  • SeekDB adapter (pkg/vector/vdbs/seekdb.py): Implements VectorDatabase interface with HNSW indexing, cosine similarity, async operations
  • Database auto-creation: Embedded mode now creates the database if it doesn't exist before connecting
  • Unit tests: 5 comprehensive tests covering all adapter operations

Configuration

vdb:
  use: seekdb
  seekdb:
    mode: embedded  # or 'server'
    path: './data/seekdb'
    database: 'langbot'

Platform Support

Mode Linux macOS Windows
Embedded
Server ⚠️ #36 ⚠️
Remote

更改前后对比截图 / Screenshots

N/A - Backend feature

检查清单 / Checklist

PR 作者完成 / For PR author

  • 阅读仓库贡献指引了吗? / Have you read the contribution guide?
  • 与项目所有者沟通过了吗? / Have you communicated with the project maintainer?
  • 我确定已自行测试所作的更改,确保功能符合预期。 / I have tested the changes and ensured they work as expected.

项目维护者完成 / For project maintainer

  • 相关 issues 链接了吗? / Have you linked the related issues?
  • 配置项写好了吗?迁移写好了吗?生效了吗? / Have you written the configuration items? Have you written the migration? Has it taken effect?
  • 依赖加到 pyproject.toml 和 core/bootutils/deps.py 了吗 / Have you added the dependencies to pyproject.toml and core/bootutils/deps.py?
  • 文档编写了吗? / Have you written the documentation?

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 29, 2025 02:32
Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com>
Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Nov 29, 2025

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • openwebapi.oceanbase.com
    • Triggering command: .venv/bin/python .venv/bin/python /tmp/test_seekdb.py (dns block)
    • Triggering command: `.venv/bin/python .venv/bin/python -c
      import pyseekdb
      from pyseekdb import HNSWConfiguration
      import tempfile
      import os

with tempfile.TemporaryDirectory() as tmpdir:
db_path = os.path.join(tmpdir, 'seekdb_test')

# Try creating client with just path
print(&#39;Testing with defaul` (dns block)
  • Triggering command: .venv/bin/python .venv/bin/python /tmp/test_seekdb_final.py (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title [WIP] Add SeekDB vector database support for knowledge bases feat: add SeekDB vector database support for knowledge bases Nov 29, 2025
Copilot AI requested a review from RockChinQ November 29, 2025 02:36
@RockChinQ RockChinQ marked this pull request as ready for review November 29, 2025 06:47
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. dependencies 依赖库相关 / deps related eh: Feature enhance: 新功能添加 / add new features m: Tools 工具(ToolUse、内容函数)相关 / Function Calling or tools management labels Nov 29, 2025
@RockChinQ RockChinQ closed this Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies 依赖库相关 / deps related eh: Feature enhance: 新功能添加 / add new features m: Tools 工具(ToolUse、内容函数)相关 / Function Calling or tools management size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants