Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(document): add debugging documents #864

Merged
merged 17 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ Select the knowledge base, click the `Create` button, and fill in the necessary


<p align="left">
<img src={'/img/chat_knowledge/create_knowledge_base.png'} width="720px" />
<img src={'/img/chat_knowledge/create_knowledge_base.png'} width="720px"/>
</p>


### Upload documents

Document addition currently supports multiple types, such as plain text, URL crawling, and various document types such as PDF, Word, and Markdown. Select a specific document to `upload`.
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/installation/sourcecode.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ git clone https://github.com/eosphoros-ai/DB-GPT.git

### Miniconda environment installation

- The default database uses SQLite, so there is no need to install a database in the default startup mode. If you need to use other databases, you can read the [advanced tutorials](/docs/operation_manual/advanced_tutorial) below. We recommend installing the Python virtual environment through the conda virtual environment. For the installation of Miniconda environment, please refer to the [Miniconda installation tutorial](https://docs.conda.io/projects/miniconda/en/latest/).
- The default database uses SQLite, so there is no need to install a database in the default startup mode. If you need to use other databases, you can read the [advanced tutorials](/docs/application_manual/advanced_tutorial) below. We recommend installing the Python virtual environment through the conda virtual environment. For the installation of Miniconda environment, please refer to the [Miniconda installation tutorial](https://docs.conda.io/projects/miniconda/en/latest/).

:::tip
Create a Python virtual environment
Expand Down
22 changes: 17 additions & 5 deletions docs/docs/quickstart.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
sidebar_position: 0
---

# Quickstart
DB-GPT supports the installation and use of a variety of open source and closed models. Different models have different requirements for environment and resources. If localized model deployment is required, GPU resources are required for deployment. The API proxy model requires relatively few resources and can be deployed and started on a CPU machine.

Expand All @@ -27,7 +26,7 @@ git clone https://github.com/eosphoros-ai/DB-GPT.git

### Miniconda environment installation

- The default database uses SQLite, so there is no need to install a database in the default startup mode. If you need to use other databases, you can read the [advanced tutorials](/docs/operation_manual/advanced_tutorial/rag) below. We recommend installing the Python virtual environment through the conda virtual environment. For the installation of Miniconda environment, please refer to the [Miniconda installation tutorial](https://docs.conda.io/projects/miniconda/en/latest/).
- The default database uses SQLite, so there is no need to install a database in the default startup mode. If you need to use other databases, you can read the [advanced tutorials](/docs/application_manual/advanced_tutorial/rag) below. We recommend installing the Python virtual environment through the conda virtual environment. For the installation of Miniconda environment, please refer to the [Miniconda installation tutorial](https://docs.conda.io/projects/miniconda/en/latest/).

:::tip
Create a Python virtual environment
Expand Down Expand Up @@ -56,8 +55,18 @@ cp .env.template .env
Provide two deployment methods to quickly start experiencing DB-GPT.

:::
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs
defaultValue="openai"
values={[
{label: 'Open AI', value: 'openai'},
{label: 'Vicuna', value: 'vicuna'},
]}>

<TabItem value="openai" label="openai">

### Method 1. OpenAI agent mode deployment
:::info note

⚠️ You need to ensure that git-lfs is installed
Expand Down Expand Up @@ -90,9 +99,9 @@ LLM_MODEL=chatgpt_proxyllm
PROXY_API_KEY={your-openai-sk}
PROXY_SERVER_URL=https://api.openai.com/v1/chat/completions
```
</TabItem>


### Method 2. Vicuna local deployment
<TabItem value="vicuna" label="vicuna">

#### Hardware requirements description
| Model | Quantize | VRAM Size |
Expand Down Expand Up @@ -122,6 +131,9 @@ git clone https://huggingface.co/lmsys/vicuna-13b-v1.5
# .env
LLM_MODEL=vicuna-13b-v1.5
```
</TabItem>

</Tabs>


## Test data (optional)
Expand Down
4 changes: 2 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ const config = {
navbar: {
logo: {
alt: 'DB-GPT Logo',
src: 'img/dbgpt_logo.png',
srcDark: 'img/DB-GPT_LOGO_White.png',
src: 'img/dbgpt_logo.svg',
srcDark: 'img/DB-GPT_LOGO_White.svg',
href: "/docs/overview"
},

Expand Down
37 changes: 16 additions & 21 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,37 +92,38 @@ const sidebars = {

{
type: "category",
label: "Operation Manual",
label: "Application Manual",
collapsed: false,
collapsible: false,
items: [

{
type: 'category',
label: 'Getting Started Tutorial',
items: [
{
type: 'doc',
id: 'operation_manual/started_tutorial/chat_knowledge',
id: 'application_manual/started_tutorial/chat_knowledge',
},
{
type: 'doc',
id: 'operation_manual/started_tutorial/chat_data',
id: 'application_manual/started_tutorial/chat_data',
},
{
type: 'doc',
id: 'operation_manual/started_tutorial/chat_excel',
id: 'application_manual/started_tutorial/chat_excel',
},
{
type: 'doc',
id: 'operation_manual/started_tutorial/chat_db',
id: 'application_manual/started_tutorial/chat_db',
},
{
type: 'doc',
id: 'operation_manual/started_tutorial/chat_dashboard',
id: 'application_manual/started_tutorial/chat_dashboard',
},
{
type: 'doc',
id: 'operation_manual/started_tutorial/agent',
id: 'application_manual/started_tutorial/agent',
},
],
},
Expand All @@ -132,15 +133,15 @@ const sidebars = {
items: [
{
type: 'doc',
id: 'operation_manual/advanced_tutorial/rag',
id: 'application_manual/advanced_tutorial/rag',
},
{
type: 'doc',
id: 'operation_manual/advanced_tutorial/smmf',
id: 'application_manual/advanced_tutorial/smmf',
},
{
type: 'doc',
id: 'operation_manual/advanced_tutorial/debugging',
id: 'application_manual/advanced_tutorial/debugging',
},
],
},
Expand All @@ -150,23 +151,17 @@ const sidebars = {
items: [
{
type: 'doc',
id: 'operation_manual/fine_tuning_manual/text_to_sql',
id: 'application_manual/fine_tuning_manual/text_to_sql',
},

],
},




],
link: {
type: "generated-index",
description: "DB-GPT Operation Manual",
slug: "operation_manual",
}
type: 'generated-index',
slug: "application",
},
},

{
type: "category",
label: "Modules",
Expand Down
12 changes: 9 additions & 3 deletions docs/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
no-repeat;
}

.img {
padding: 3px;
border: 1px solid #2f15d6; }
img {
border: 2px solid #CCCCCC; border-radius: 8px; box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

/* logo images are processed separately */
.navbar__logo img {
border: none;
box-shadow: none;
}
Loading