3338 Commits

Author SHA1 Message Date
Syed Osama Ali Shah
7996544a43 fix(rag): correct empty/non-list guard in TeiRerankEmbeddings._parse_results (#3133) 2026-07-15 16:27:43 +08:00
alanchen
f5adbef2ac fix(chat): avoid handleChat temporal dead zone (#3132)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-15 14:01:52 +08:00
Aries-ckt
2d1663cf5c feat:add ask_question tool as builtin-tools (#3107) 2026-07-12 18:51:38 +08:00
chen-alan
209588ddd5 fix(config): allow Milvus vector store type in TOML configuration (#3127)
## Summary

Fixes #3041

When users set `type = "milvus"` in their TOML vector storage config,
the server fails to start with:
```
ValueError: Invalid data for ChromaVectorConfig: Unknown type value: milvus,
known types: ['chroma', 'elasticsearch', 'pgvector', 'weaviate', 'oceanbase']
```

### Root Causes

1. **Wrong type annotation** — `StorageConfig.vector` was annotated as
`ChromaVectorConfig` instead of the polymorphic base class
`VectorStoreConfig`, preventing the config parser from dispatching to
non-chroma vector store types.
2. **Top-level `pymilvus` import** — `milvus_store.py` imported
`pymilvus` at module level (line 12). When `pymilvus` is not installed,
the entire module fails to load and `MilvusVectorConfig` is never
registered in the type registry.

### Fix

- **`packages/dbgpt-app/src/dbgpt_app/config.py`**: Change the `vector`
field type annotation from `ChromaVectorConfig` to `VectorStoreConfig`
(keeping `ChromaVectorConfig()` as the default value for backward
compatibility).
-
**`packages/dbgpt-ext/src/dbgpt_ext/storage/vector_store/milvus_store.py`**:
Move the top-level `from pymilvus.milvus_client import IndexParams,
MilvusClient` into the methods that actually use them (lazy import),
matching the pattern used by all other vector store implementations
(chroma, elasticsearch, pgvector, weaviate, etc.).

### Verification

Tested with `pymilvus` **not installed** (same environment as the bug
reporter):

**Before fix** — loading a TOML config with `type = "milvus"`:
```
Error scanning module dbgpt_ext.storage.vector_store.milvus_store: No module named 'pymilvus'
ValueError: Invalid data for ChromaVectorConfig: Unknown type value: milvus
```

**After fix** — same config loads successfully:
```
 vector type: MilvusVectorConfig (uri=localhost, port=19530)
```

- `MilvusVectorConfig` registers in the type registry even without
`pymilvus` installed
- `VectorStoreConfig.get_subclass("milvus")` correctly resolves to
`MilvusVectorConfig`
- When actually creating a `MilvusStore` without `pymilvus`, a clear
error message is shown: `"Please install it with pip install pymilvus"`
- All 26 existing storage unit tests pass
- `ruff` lint and format checks pass


Made with [Cursor](https://cursor.com)
2026-07-09 19:34:00 +08:00
田云钊
d8c2abf027 fix(config): allow Milvus vector store type in TOML configuration (#3041)
When users set `type = "milvus"` in their TOML vector storage config,
the server fails to start with:
  ValueError: Unknown type value: milvus, known types: [...]

Root causes:
1. The `StorageConfig.vector` field was annotated as `ChromaVectorConfig`
   instead of the base `VectorStoreConfig`, preventing polymorphic type
   dispatch from resolving any non-chroma vector store type correctly.
2. `milvus_store.py` imported `pymilvus` at module level. When pymilvus
   is not installed, the entire module fails to load and
   `MilvusVectorConfig` is never registered in the type registry.

Fix:
- Change the `vector` field type annotation to `VectorStoreConfig`
  (keeping `ChromaVectorConfig()` as default for backward compatibility).
- Move the top-level `pymilvus` import into the methods that actually
  use it (lazy import), matching the pattern used by all other vector
  store implementations (chroma, elasticsearch, pgvector, etc.).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 11:33:11 +08:00
alanchen
177bfc84f7 chore: update 0.8.1 version (#3106) v0.8.1 2026-06-18 12:39:11 +08:00
Yufeng He
fe35e832a4 fix(sandbox): require local runtime opt-in (#3092) 2026-06-17 19:50:00 +08:00
alanchen
03e5811d57 feat: Support Schedule task and MCP connector (#3095)
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-08 11:43:35 +08:00
Anna Tao
5c0c25e8f1 feat: add CLIENT SETNAME to Valkey vector store client (#3090)
Signed-off-by: Anna Tao <annatao@amazon.com>
2026-06-03 17:43:42 +08:00
Octopus
82408793f5 feat: upgrade MiniMax default model to M3 (#3093) 2026-06-03 17:42:55 +08:00
Artoriasn
1c9e320521 fix(model): support DeepSeek V4 Pro (#3079) 2026-05-27 21:09:36 +08:00
Honglei
5dc365682a fix(rag): use size chunking by default for markdown knowledge (Fixes #3030) (#3033)
Co-authored-by: honglei <honglei@users.noreply.github.com>
2026-05-25 23:46:57 +08:00
Jaeyoung Yun
b855cd0d54 feat: Harden ~/.dbgpt/configs/<profile>.toml file permissions to 0o600 (#3077)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 23:44:58 +08:00
Cc
3a07e8dc33 fix: restrict personal skill script execution (#3071)
Co-authored-by: wolfkill <27876473+wolfkill@users.noreply.github.com>
2026-05-21 19:57:01 +08:00
Cc
79ea62cd4e fix: validate example file names (#3066)
Co-authored-by: wolfkill <27876473+wolfkill@users.noreply.github.com>
2026-05-21 19:17:44 +08:00
Cc
aecad1a9c0 fix: validate skill upload filenames (#3065)
Co-authored-by: wolfkill <27876473+wolfkill@users.noreply.github.com>
2026-05-21 19:17:22 +08:00
Cc
51c4e8cdaa fix: handle knowledge space id responses (#3070)
Co-authored-by: wolfkill <27876473+wolfkill@users.noreply.github.com>
2026-05-21 19:16:57 +08:00
Cc
72639e849b fix: constrain python upload filenames (#3064)
Co-authored-by: wolfkill <27876473+wolfkill@users.noreply.github.com>
2026-05-21 19:16:22 +08:00
Artoriasn
cc47cf0cc9 fix(agent): tolerate multi-step ReAct output (#3074) 2026-05-21 09:57:16 +08:00
Aries-ckt
9470ea03ff feat(agent):adds context management, task-plan tracking, and the corresponding frontend UI. (#3053) 2026-05-18 11:17:04 +08:00
Aalron
d6e1581dcd feat: Implement VARBINARY and BINARY types for StarRocks (#3062) 2026-05-17 23:13:13 +08:00
hankchorome
fa1a8d2f70 fix(chat_db_qa): tell LLM the table list is a TOP-K subset, not the full DB (#3045)
Co-authored-by: hankchrome <hankchrome@github.com>
2026-05-13 11:42:39 +08:00
Aalron
8a4940ded8 fix: fix the insufficient length of the content column in the gpts_messages table (#3055) 2026-05-13 09:51:50 +08:00
Daria Korenieva
d60c91c752 feat(ext): add Valkey cache integration (#3057)
Signed-off-by: Daria Korenieva <daric2612@gmail.com>
2026-05-12 20:34:43 +08:00
Mohamed Arbi
c1f9c63af6 feat(qdrant): make distance metric configurable (#3044) 2026-05-10 16:05:45 +08:00
Daria Korenieva
ca126edfab feat(ext): add Valkey vector store integration (#3051)
Signed-off-by: Daria Korenieva <daric2612@gmail.com>
2026-05-09 19:13:52 +08:00
hankchorome
22e87ece6e fix(milvus): make MilvusStore compatible with milvus 2.5+ (#3042)
Co-authored-by: hankchrome <hankchrome@users.noreply.github.com>
Co-authored-by: hankchrome <hankchrome@github.com>
2026-05-09 13:33:14 +08:00
hankchorome
c78fa1a10f fix(storage,datasource): per-chunk error tolerance + per-db indexing lock (#3040)
Co-authored-by: hankchrome <hankchrome@users.noreply.github.com>
Co-authored-by: hankchrome <hankchrome@github.com>
2026-05-05 22:31:56 +08:00
Aarish Alam
000a653d91 feat: add LiteLLM as an embedded AI gateway provider (#3043) 2026-05-05 22:30:45 +08:00
hankchorome
8ca27d21f9 perf(datasource): cache ConnectorManager.get_connector with TTL (~63s -> <10ms on warm cache) (#3046)
Co-authored-by: hankchrome <hankchrome@github.com>
2026-05-05 20:36:28 +08:00
hankchorome
71784ce226 fix(datasource): override get_fields() for MSSQL with SQL Server-correct INFORMATION_SCHEMA (#3039)
Co-authored-by: hankchrome <hankchrome@users.noreply.github.com>
2026-04-30 22:34:38 +08:00
github0070070
e46db3053b fix: add authentication dependency to knowledge module endpoints (#3038) 2026-04-29 13:40:26 +08:00
Octopus
9ed8671f4c fix(awel): BranchOperator incorrectly skips shared downstream nodes (fixes #2935) (#3035)
Co-authored-by: octo-patch <octo-patch@github.com>
2026-04-26 20:37:20 +08:00
Anush
e6abfa26aa feat: Adds support for vector search with Qdrant (#3034) 2026-04-25 11:26:11 +08:00
Honglei
83d306e8ad fix(rag): honor configured Tongyi embedding model name (Fixes #3029) (#3032)
Co-authored-by: honglei <honglei@users.noreply.github.com>
2026-04-22 18:53:58 +08:00
Octopus
116388f931 fix: use explicit UTF-8 encoding when writing code_interpreter temp script (#3023)
Co-authored-by: octo-patch <octo-patch@github.com>
2026-04-20 21:43:47 +08:00
yanzhicong
b4b0a53d1b feat: add openGauss datasource support (#3007) 2026-04-03 17:18:54 +08:00
Honglei
294dfcc30d [Fix] Fix DuckDB datasource creation from Web UI (#3009)
Co-authored-by: honglei <honglei@users.noreply.github.com>
2026-04-02 20:17:01 +08:00
alanchen
a3f21350a9 chore: update 0.8.0 version (#3004) v0.8.0 2026-03-27 12:42:28 +08:00
alanchen
eb5920bcb8 fix: fix web api prcess url & optmize doc image load performence (#3003) 2026-03-26 19:08:29 +08:00
Aries-ckt
07dc04b15d fix(docs): add docsSidebar alias to versioned sidebars patches (#3002)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-26 14:24:38 +08:00
Aries-ckt
e055429788 docs: add v0.8.0 usage documentation (#2998)
Co-authored-by: alan.cl <1165243776@qq.com>
2026-03-25 21:50:23 +08:00
LXW2019124
1695ae6949 fix(#2995): ignore leading vis-thinking block in react parser (#2996)
Co-authored-by: LXW2019124 <LXW2019124@users.noreply.github.com>
2026-03-23 23:46:22 +08:00
alanchen
295885f021 feat: add dbgpt app start cli (#2997) 2026-03-22 22:42:12 +08:00
Octopus
91048cae6f feat: upgrade MiniMax default model to M2.7 (#2993) 2026-03-19 23:45:14 +08:00
Fangyin Cheng
9def9feb43 chore: update pacakge version (#2992) 2026-03-18 22:08:24 +08:00
Octopus
03e72271f5 feat: add MiniMax provider support (#2989)
Co-authored-by: octo-patch <octo-patch@users.noreply.github.com>
2026-03-16 22:02:57 +08:00
Aries-ckt
aec6673b1a docs: install and readme (#2991) 2026-03-16 15:15:47 +08:00
Aries-ckt
ef83851b31 🎉 DB-GPT V0.8.0 - Beta Testing (#2988)
Co-authored-by: lusain <lusain1990@gmail.com>
Co-authored-by: alan.cl <1165243776@qq.com>
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-16 11:55:42 +08:00
Copilot
322792b9d2 Fix v0.7.5 documentation build failure with patch file (#2979)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: chenliang15405 <40684202+chenliang15405@users.noreply.github.com>
2026-02-12 10:40:16 +08:00