Skip to content

Commit

Permalink
Change db name to dbvicuna
Browse files Browse the repository at this point in the history
  • Loading branch information
penghou.ho committed Feb 13, 2024
1 parent 0e61ca7 commit 883afba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/schema/dbgpt.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
-- eg. `LOCAL_DB_NAME=dbgpt`

CREATE
DATABASE IF NOT EXISTS dbgpt;
use dbgpt;
DATABASE IF NOT EXISTS dbvicuna;
use dbvicuna;

-- For alembic migration tool
CREATE TABLE IF NOT EXISTS `alembic_version`
Expand Down Expand Up @@ -222,7 +222,7 @@ CREATE TABLE IF NOT EXISTS `gpts_instance` (
UNIQUE KEY `uk_gpts` (`gpts_name`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COMMENT="gpts instance";

CREATE TABLE `gpts_messages` (
CREATE TABLE IF NOT EXISTS `gpts_messages` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'autoincrement id',
`conv_id` varchar(255) NOT NULL COMMENT 'The unique id of the conversation record',
`sender` varchar(255) NOT NULL COMMENT 'Who speaking in the current conversation turn',
Expand All @@ -242,7 +242,7 @@ CREATE TABLE `gpts_messages` (
) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb4 COMMENT="gpts message";


CREATE TABLE `gpts_plans` (
CREATE TABLE IF NOT EXISTS `gpts_plans` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'autoincrement id',
`conv_id` varchar(255) NOT NULL COMMENT 'The unique id of the conversation record',
`sub_task_num` int(11) NOT NULL COMMENT 'Subtask number',
Expand Down
1 change: 1 addition & 0 deletions dbgpt/storage/vector_store/chroma_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import os
from typing import Any, List

# NOTE: This is useful for testing and development, but not recommended for production use.
from chromadb import PersistentClient
from chromadb.config import Settings
from pydantic import Field
Expand Down

0 comments on commit 883afba

Please sign in to comment.