mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-19 08:47:32 +00:00
chores: remove extra unuse code and update contact info (#869)
Co-authored-by: junewgl <1965259211@qq.com>
This commit is contained in:
parent
74896cdd01
commit
1a8616dab8
21
README.md
21
README.md
@ -21,8 +21,8 @@
|
||||
<a href="https://github.com/eosphoros-ai/DB-GPT/issues">
|
||||
<img alt="Open Issues" src="https://img.shields.io/github/issues-raw/eosphoros-ai/DB-GPT" />
|
||||
</a>
|
||||
<a href="https://discord.gg/nASQyBjvY">
|
||||
<img alt="Discord" src="https://dcbadge.vercel.app/api/server/nASQyBjvY?compact=true&style=flat" />
|
||||
<a href="https://discord.gg/7uQnPuveTY">
|
||||
<img alt="Discord" src="https://dcbadge.vercel.app/api/server/7uQnPuveTY?compact=true&style=flat" />
|
||||
</a>
|
||||
<a href="https://codespaces.new/eosphoros-ai/DB-GPT">
|
||||
<img alt="Open in GitHub Codespaces" src="https://github.com/codespaces/badge.svg" />
|
||||
@ -30,7 +30,7 @@
|
||||
</p>
|
||||
|
||||
|
||||
[**简体中文**](README.zh.md) | [**Discord**](https://discord.gg/nASQyBjvY) | [**Documents**](https://db-gpt.readthedocs.io/en/latest/) | [**Wechat**](https://github.com/eosphoros-ai/DB-GPT/blob/main/README.zh.md#%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC) | [**Community**](https://github.com/eosphoros-ai/community)
|
||||
[**简体中文**](README.zh.md) | [**Discord**](https://discord.gg/7uQnPuveTY) | [**Documents**](https://db-gpt.readthedocs.io/en/latest/) | [**Wechat**](https://github.com/eosphoros-ai/DB-GPT/blob/main/README.zh.md#%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC) | [**Community**](https://github.com/eosphoros-ai/community)
|
||||
</div>
|
||||
|
||||
## What is DB-GPT?
|
||||
@ -51,11 +51,11 @@ In the era of Data 3.0, enterprises and developers can take the ability to creat
|
||||
## Contents
|
||||
- [Install](#install)
|
||||
- [Demo](#demo)
|
||||
- [introduction](#introduction)
|
||||
- [features](#features)
|
||||
- [contribution](#contribution)
|
||||
- [roadmap](#roadmap)
|
||||
- [contact](#contact-information)
|
||||
- [Introduction](#introduction)
|
||||
- [Features](#features)
|
||||
- [Contribution](#contribution)
|
||||
- [Roadmap](#roadmap)
|
||||
- [Contact](#contact-information)
|
||||
|
||||
[DB-GPT Youtube Video](https://www.youtube.com/watch?v=f5_g0OObZBQ)
|
||||
|
||||
@ -212,7 +212,7 @@ The core capabilities primarily consist of the following components:
|
||||
### Agents market and Plugins
|
||||
- [x] multi-agents framework
|
||||
- [x] custom plugin development
|
||||
- [ ] plugin market
|
||||
- [x] plugin market
|
||||
- [ ] Integration with CoT
|
||||
- [ ] Enrich plugin sample library
|
||||
- [ ] Support for AutoGPT protocol
|
||||
@ -244,11 +244,10 @@ As of October 10, 2023, through the fine-tuning of an open-source model with 13
|
||||
|
||||
## Licence
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
## Contact Information
|
||||
We are working on building a community, if you have any ideas for building the community, feel free to contact us.
|
||||
[](https://discord.gg/nASQyBjvY)
|
||||
[](https://discord.gg/7uQnPuveTY)
|
||||
|
||||
<p align="center">
|
||||
<img src="./assets/wechat.jpg" width="300px" />
|
||||
|
23
README.zh.md
23
README.zh.md
@ -22,15 +22,15 @@
|
||||
<a href="https://github.com/eosphoros-ai/DB-GPT/issues">
|
||||
<img alt="Open Issues" src="https://img.shields.io/github/issues-raw/csunny/DB-GPT" />
|
||||
</a>
|
||||
<a href="https://discord.gg/nASQyBjvY">
|
||||
<img alt="Discord" src="https://dcbadge.vercel.app/api/server/nASQyBjvY?compact=true&style=flat" />
|
||||
<a href="https://discord.gg/7uQnPuveTY">
|
||||
<img alt="Discord" src="https://dcbadge.vercel.app/api/server/7uQnPuveTY?compact=true&style=flat" />
|
||||
</a>
|
||||
<a href="https://codespaces.new/eosphoros-ai/DB-GPT">
|
||||
<img alt="Open in GitHub Codespaces" src="https://github.com/codespaces/badge.svg" />
|
||||
</a>
|
||||
</p>
|
||||
|
||||
[**English**](README.md)|[**Discord**](https://discord.gg/nASQyBjvY)|[**文档**](https://db-gpt.readthedocs.io/projects/db-gpt-docs-zh-cn/zh_CN/latest/)|[**微信**](https://github.com/csunny/DB-GPT/blob/main/README.zh.md#%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC)|[**社区**](https://github.com/eosphoros-ai/community)
|
||||
[**English**](README.md)|[**Discord**](https://discord.gg/7uQnPuveTY)|[**文档**](https://db-gpt.readthedocs.io/projects/db-gpt-docs-zh-cn/zh_CN/latest/)|[**微信**](https://github.com/csunny/DB-GPT/blob/main/README.zh.md#%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC)|[**社区**](https://github.com/eosphoros-ai/community)
|
||||
</div>
|
||||
|
||||
## DB-GPT 是什么?
|
||||
@ -90,8 +90,8 @@ DB-GPT是一个开源的数据库领域大模型框架。目的是构建大模
|
||||
- [**单机部署**](https://www.yuque.com/eosphoros/dbgpt-docs/kwg1ed88lu5fgawb)
|
||||
- [**集群部署**](https://www.yuque.com/eosphoros/dbgpt-docs/gmbp9619ytyn2v1s)
|
||||
- [**vLLM**](https://www.yuque.com/eosphoros/dbgpt-docs/bhy9igdvanx1uluf)
|
||||
- [**如何Debug**](https://db-gpt.readthedocs.io/en/latest/getting_started/observability.html)
|
||||
- [**FAQ**](https://db-gpt.readthedocs.io/en/latest/getting_started/faq/deploy/deploy_faq.html)
|
||||
- [**如何Debug**](https://www.yuque.com/eosphoros/dbgpt-docs/eyg0ocbc2ce3q95r)
|
||||
- [**FAQ**](https://www.yuque.com/eosphoros/dbgpt-docs/gomtc46qonmyt44l)
|
||||
|
||||
## 特性一览
|
||||
- **私域问答&数据处理&RAG**
|
||||
@ -136,10 +136,12 @@ DB-GPT是一个开源的数据库领域大模型框架。目的是构建大模
|
||||
- [Yi-34B-Chat](https://huggingface.co/01-ai/Yi-34B-Chat)
|
||||
|
||||
- 支持在线代理模型
|
||||
- [x] [ChatGPT](https://api.openai.com/)
|
||||
- [x] [Tongyi](https://www.aliyun.com/product/dashscope)
|
||||
- [x] [Wenxin](https://cloud.baidu.com/product/wenxinworkshop?track=dingbutonglan)
|
||||
- [x] [ChatGLM](http://open.bigmodel.cn/)
|
||||
- [x] [OpenAI·ChatGPT](https://api.openai.com/)
|
||||
- [x] [阿里·通义](https://www.aliyun.com/product/dashscope)
|
||||
- [x] [百度·文心](https://cloud.baidu.com/product/wenxinworkshop?track=dingbutonglan)
|
||||
- [x] [智谱·ChatGLM](http://open.bigmodel.cn/)
|
||||
- [x] [讯飞·星火](https://xinghuo.xfyun.cn/)
|
||||
- [x] [Google·Bard](https://bard.google.com/)
|
||||
|
||||
- **隐私安全**
|
||||
|
||||
@ -288,7 +290,7 @@ The MIT License (MIT)
|
||||
### Agents与插件市场
|
||||
- [x] 多Agents框架
|
||||
- [x] 自定义Agents
|
||||
- [ ] 插件市场
|
||||
- [x] 插件市场
|
||||
- [ ] CoT集成
|
||||
- [ ] 丰富插件样本库
|
||||
- [ ] 支持AutoGPT协议
|
||||
@ -331,5 +333,4 @@ The MIT License (MIT)
|
||||
<img src="./assets/wechat.jpg" width="300px" />
|
||||
</p>
|
||||
|
||||
|
||||
[](https://star-history.com/#csunny/DB-GPT)
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 197 KiB |
4
pilot/model/cache/__init__.py
vendored
4
pilot/model/cache/__init__.py
vendored
@ -1,4 +0,0 @@
|
||||
from .base import Cache
|
||||
from .disk_cache import DiskCache
|
||||
from .memory_cache import InMemoryCache
|
||||
from .gpt_cache import GPTCache
|
24
pilot/model/cache/base.py
vendored
24
pilot/model/cache/base.py
vendored
@ -1,24 +0,0 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class Cache(ABC):
|
||||
def create(self, key: str) -> bool:
|
||||
pass
|
||||
|
||||
def clear(self):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def __getitem__(self, key: str) -> str:
|
||||
"""get an item from the cache or throw key error"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def __setitem__(self, key: str, value: str) -> None:
|
||||
"""set an item in the cache"""
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def __contains__(self, key: str) -> bool:
|
||||
"""see if we can return a cached value for the passed key"""
|
||||
pass
|
27
pilot/model/cache/disk_cache.py
vendored
27
pilot/model/cache/disk_cache.py
vendored
@ -1,27 +0,0 @@
|
||||
import os
|
||||
import diskcache
|
||||
import platformdirs
|
||||
from pilot.model.cache import Cache
|
||||
|
||||
|
||||
class DiskCache(Cache):
|
||||
"""DiskCache is a cache that uses diskcache lib.
|
||||
https://github.com/grantjenks/python-diskcache
|
||||
"""
|
||||
|
||||
def __init__(self, llm_name: str):
|
||||
self._diskcache = diskcache.Cache(
|
||||
os.path.join(platformdirs.user_cache_dir("dbgpt"), f"_{llm_name}.diskcache")
|
||||
)
|
||||
|
||||
def __getitem__(self, key: str) -> str:
|
||||
return self._diskcache[key]
|
||||
|
||||
def __setitem__(self, key: str, value: str) -> None:
|
||||
self._diskcache[key] = value
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self._diskcache
|
||||
|
||||
def clear(self):
|
||||
self._diskcache.clear()
|
45
pilot/model/cache/gpt_cache.py
vendored
45
pilot/model/cache/gpt_cache.py
vendored
@ -1,45 +0,0 @@
|
||||
import os
|
||||
from typing import Dict, Any
|
||||
import platformdirs
|
||||
|
||||
from pilot.model.cache import Cache
|
||||
|
||||
try:
|
||||
from gptcache.adapter.api import get, put, init_similar_cache
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
class GPTCache(Cache):
|
||||
|
||||
"""
|
||||
GPTCache is a semantic cache that uses
|
||||
"""
|
||||
|
||||
def __init__(self, cache) -> None:
|
||||
"""GPT Cache is a semantic cache that uses GPTCache lib."""
|
||||
|
||||
if isinstance(cache, str):
|
||||
_cache = Cache()
|
||||
init_similar_cache(
|
||||
data_dir=os.path.join(
|
||||
platformdirs.user_cache_dir("dbgpt"), f"_{cache}.gptcache"
|
||||
),
|
||||
cache_obj=_cache,
|
||||
)
|
||||
else:
|
||||
_cache = cache
|
||||
|
||||
self._cache_obj = _cache
|
||||
|
||||
def __getitem__(self, key: str) -> str:
|
||||
return get(key)
|
||||
|
||||
def __setitem__(self, key: str, value: str) -> None:
|
||||
put(key, value)
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return get(key) is not None
|
||||
|
||||
def create(self, llm: str, **kwargs: Dict[str, Any]) -> str:
|
||||
pass
|
23
pilot/model/cache/memory_cache.py
vendored
23
pilot/model/cache/memory_cache.py
vendored
@ -1,23 +0,0 @@
|
||||
from typing import Dict, Any
|
||||
from pilot.model.cache import Cache
|
||||
|
||||
|
||||
class InMemoryCache(Cache):
|
||||
def __init__(self) -> None:
|
||||
"Initialize that stores things in memory."
|
||||
self._cache: Dict[str, Any] = {}
|
||||
|
||||
def create(self, key: str) -> bool:
|
||||
pass
|
||||
|
||||
def clear(self):
|
||||
return self._cache.clear()
|
||||
|
||||
def __setitem__(self, key: str, value: str) -> None:
|
||||
self._cache[key] = value
|
||||
|
||||
def __getitem__(self, key: str) -> str:
|
||||
return self._cache[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return self._cache.get(key, None) is not None
|
Loading…
Reference in New Issue
Block a user