diff --git a/README.md b/README.md index 4ee75a3b8..0f7fd9996 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ - - + + @@ -30,7 +30,7 @@
-[**简体中文**](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) ## 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://dcbadge.vercel.app/api/server/nASQyBjvY?compact=true&style=flat)](https://discord.gg/nASQyBjvY) +[![](https://dcbadge.vercel.app/api/server/7uQnPuveTY?compact=true&style=flat)](https://discord.gg/7uQnPuveTY)diff --git a/README.zh.md b/README.zh.md index 00ead0cc8..14a36a86e 100644 --- a/README.zh.md +++ b/README.zh.md @@ -22,15 +22,15 @@ - - + +
-[**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) ## 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) - [![Star History Chart](https://api.star-history.com/svg?repos=csunny/DB-GPT&type=Date)](https://star-history.com/#csunny/DB-GPT) diff --git a/assets/wechat.jpg b/assets/wechat.jpg index 7a2ce6dd5..d290f7917 100644 Binary files a/assets/wechat.jpg and b/assets/wechat.jpg differ diff --git a/pilot/model/cache/__init__.py b/pilot/model/cache/__init__.py deleted file mode 100644 index 37dd0025b..000000000 --- a/pilot/model/cache/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from .base import Cache -from .disk_cache import DiskCache -from .memory_cache import InMemoryCache -from .gpt_cache import GPTCache diff --git a/pilot/model/cache/base.py b/pilot/model/cache/base.py deleted file mode 100644 index 904241de7..000000000 --- a/pilot/model/cache/base.py +++ /dev/null @@ -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 diff --git a/pilot/model/cache/disk_cache.py b/pilot/model/cache/disk_cache.py deleted file mode 100644 index 25895dc9f..000000000 --- a/pilot/model/cache/disk_cache.py +++ /dev/null @@ -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() diff --git a/pilot/model/cache/gpt_cache.py b/pilot/model/cache/gpt_cache.py deleted file mode 100644 index ee4529a5c..000000000 --- a/pilot/model/cache/gpt_cache.py +++ /dev/null @@ -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 diff --git a/pilot/model/cache/memory_cache.py b/pilot/model/cache/memory_cache.py deleted file mode 100644 index 7960b3d2e..000000000 --- a/pilot/model/cache/memory_cache.py +++ /dev/null @@ -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