mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-29 14:57:35 +00:00
fix: column alias bug fix (#2499)
This commit is contained in:
parent
73052eda75
commit
ca0d1ecea3
14
README.ja.md
14
README.ja.md
@ -45,9 +45,17 @@
|
|||||||
🚀 **データ3.0時代には、モデルとデータベースを基盤として、企業や開発者がより少ないコードで独自のアプリケーションを構築できます。**
|
🚀 **データ3.0時代には、モデルとデータベースを基盤として、企業や開発者がより少ないコードで独自のアプリケーションを構築できます。**
|
||||||
|
|
||||||
### AIネイティブデータアプリ
|
### AIネイティブデータアプリ
|
||||||
---
|
- 🔥🔥🔥 [V0.7.0 リリース | 重要なアップグレードのセット](https://docs.dbgpt.cn/docs/changelog/Released_V0.6.0)
|
||||||
- 🔥🔥🔥 [V0.5.0リリース | ワークフローとエージェントを通じてネイティブデータアプリケーションを開発](https://docs.dbgpt.site/docs/changelog/Released_V0.5.0)
|
- [サポート MCP Protocol](https://github.com/eosphoros-ai/DB-GPT/pull/2497)
|
||||||
---
|
- [サポート DeepSeek R1](https://github.com/deepseek-ai/DeepSeek-R1)
|
||||||
|
- [サポート QwQ-32B](https://huggingface.co/Qwen/QwQ-32B)
|
||||||
|
- [基本モジュールをリファクタリングする]()
|
||||||
|
- [dbgpt-app](./packages/dbgpt-app)
|
||||||
|
- [dbgpt-core](./packages/dbgpt-core)
|
||||||
|
- [dbgpt-serve](./packages/dbgpt-serve)
|
||||||
|
- [dbgpt-client](./packages/dbgpt-client)
|
||||||
|
- [dbgpt-accelerator](./packages/dbgpt-accelerator)
|
||||||
|
- [dbgpt-ext](./packages/dbgpt-ext)
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
22
README.md
22
README.md
@ -50,14 +50,17 @@ The purpose is to build infrastructure in the field of large models, through the
|
|||||||
|
|
||||||
### AI-Native Data App
|
### AI-Native Data App
|
||||||
---
|
---
|
||||||
- 🔥🔥🔥 [Released V0.6.0 | A set of significant upgrades](https://docs.dbgpt.cn/docs/changelog/Released_V0.6.0)
|
- 🔥🔥🔥 [Released V0.7.0 | A set of significant upgrades](https://docs.dbgpt.cn/docs/changelog/Released_V0.6.0)
|
||||||
- [The AWEL upgrade to 2.0]()
|
- [Suppport MCP Protocol](https://github.com/eosphoros-ai/DB-GPT/pull/2497)
|
||||||
- [GraphRAG]()
|
- [Support DeepSeek R1](https://github.com/deepseek-ai/DeepSeek-R1)
|
||||||
- [AI Native Data App construction and management]()
|
- [Support QwQ-32B](https://huggingface.co/Qwen/QwQ-32B)
|
||||||
- [The GPT-Vis upgrade, supporting a variety of visualization charts]()
|
- [Refactor the basic modules]()
|
||||||
- [Support Text2NLU and Text2GQL fine-tuning]()
|
- [dbgpt-app](./packages/dbgpt-app)
|
||||||
- [Support Intent recognition, slot filling, and Prompt management]()
|
- [dbgpt-core](./packages/dbgpt-core)
|
||||||
|
- [dbgpt-serve](./packages/dbgpt-serve)
|
||||||
|
- [dbgpt-client](./packages/dbgpt-client)
|
||||||
|
- [dbgpt-accelerator](./packages/dbgpt-accelerator)
|
||||||
|
- [dbgpt-ext](./packages/dbgpt-ext)
|
||||||
---
|
---
|
||||||
|
|
||||||

|

|
||||||
@ -115,9 +118,6 @@ The core capabilities include the following parts:
|
|||||||
- [x] XVERSE
|
- [x] XVERSE
|
||||||
- [x] ChatGLM2
|
- [x] ChatGLM2
|
||||||
|
|
||||||
- SFT Accuracy
|
|
||||||
As of October 10, 2023, through the fine-tuning of an open-source model with 13 billion parameters using this project, we have achieved execution accuracy on the Spider dataset that surpasses even GPT-4!
|
|
||||||
|
|
||||||
[More Information about Text2SQL finetune](https://github.com/eosphoros-ai/DB-GPT-Hub)
|
[More Information about Text2SQL finetune](https://github.com/eosphoros-ai/DB-GPT-Hub)
|
||||||
|
|
||||||
- [DB-GPT-Plugins](https://github.com/eosphoros-ai/DB-GPT-Plugins) DB-GPT Plugins that can run Auto-GPT plugin directly
|
- [DB-GPT-Plugins](https://github.com/eosphoros-ai/DB-GPT-Plugins) DB-GPT Plugins that can run Auto-GPT plugin directly
|
||||||
|
29
README.zh.md
29
README.zh.md
@ -48,15 +48,16 @@
|
|||||||
|
|
||||||
### AI原生数据智能应用
|
### AI原生数据智能应用
|
||||||
---
|
---
|
||||||
- [V0.6.0发布——一系列重大功能更新](https://www.yuque.com/eosphoros/dbgpt-docs/fho86kk4e9y4rkpd)
|
- [V0.7.0发布——一系列重大功能更新](https://www.yuque.com/eosphoros/dbgpt-docs/asweou4i9rhnwchm)
|
||||||
- AWEL协议升级2.0,支持更复杂的编排,同时优化了前端可视化与交互能力。
|
- [支持MCP协议](https://github.com/eosphoros-ai/DB-GPT/pull/2497)
|
||||||
- 支持数据应用的创建与生命周期管理,提供多种应用构建模式。1. 多智能体自动规划模式、2. 任务流编排模式、3. 单一智能体模式、4. 原生应用模式
|
- 支持DeepSeek-R1、QwQ-32B等推理模型
|
||||||
- GraphRAG支持图社区摘要与混合检索,性能与检索效果有显著优势,同时支持丰富的前端可视化。
|
- 重构基础模块
|
||||||
- 支持意图识别、槽位填充与Prompt管理。
|
- [dbgpt-app](./packages/dbgpt-app)
|
||||||
- GPT-Vis前端可视化升级,支持更丰富的可视化图表。
|
- [dbgpt-core](./packages/dbgpt-core)
|
||||||
- 支持Text2NLU与Text2GQL微调, 即新增意图分类与从自然语言到图语言的微调。
|
- [dbgpt-serve](./packages/dbgpt-serve)
|
||||||
|
- [dbgpt-client](./packages/dbgpt-client)
|
||||||
|
- [dbgpt-accelerator](./packages/dbgpt-accelerator)
|
||||||
|
- [dbgpt-ext](./packages/dbgpt-ext)
|
||||||
### Data Agents
|
### Data Agents
|
||||||
|
|
||||||

|

|
||||||
@ -316,16 +317,6 @@ The MIT License (MIT)
|
|||||||
钉钉
|
钉钉
|
||||||
</p>
|
</p>
|
||||||
</figure>
|
</figure>
|
||||||
<figure style="display: flex; flex-direction: column;">
|
|
||||||
<img src="./assets/wechat.jpg" alt="图片1" style="width: 200px;">
|
|
||||||
<p style="text-align: center;">
|
|
||||||
微信
|
|
||||||
</p>
|
|
||||||
</figure>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- <p align="center">
|
|
||||||
<img src="./assets/wechat.jpg" width="300px" />
|
|
||||||
</p> -->
|
|
||||||
|
|
||||||
[](https://star-history.com/#csunny/DB-GPT)
|
[](https://star-history.com/#csunny/DB-GPT)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from typing import Dict, Iterator, List, Optional, Type, Union
|
from typing import Dict, Iterator, List, Optional, Type, Union
|
||||||
|
|
||||||
from sqlalchemy import URL
|
from sqlalchemy import URL, inspect
|
||||||
from sqlalchemy.orm import DeclarativeMeta, Session
|
from sqlalchemy.orm import DeclarativeMeta, Session
|
||||||
|
|
||||||
from dbgpt.core import Serializer
|
from dbgpt.core import Serializer
|
||||||
@ -20,11 +20,12 @@ from .db_manager import BaseModel, BaseQuery, DatabaseManager
|
|||||||
|
|
||||||
def _copy_public_properties(src: BaseModel, dest: BaseModel):
|
def _copy_public_properties(src: BaseModel, dest: BaseModel):
|
||||||
"""Copy public properties from src to dest."""
|
"""Copy public properties from src to dest."""
|
||||||
for column in src.__table__.columns: # type: ignore
|
for column in inspect(src).mapper.column_attrs:
|
||||||
if column.name != "id":
|
if column.key != "id":
|
||||||
value = getattr(src, column.name)
|
alais = column.key
|
||||||
|
value = getattr(src, alais)
|
||||||
if value is not None:
|
if value is not None:
|
||||||
setattr(dest, column.name, value)
|
setattr(dest, column.key, value)
|
||||||
|
|
||||||
|
|
||||||
class SQLAlchemyStorage(StorageInterface[T, BaseModel]):
|
class SQLAlchemyStorage(StorageInterface[T, BaseModel]):
|
||||||
|
Loading…
Reference in New Issue
Block a user