Toggle navigation
Toggle navigation
This project
Loading...
Sign in
lizhengwei
/
aigc-embedding-service
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangdongxu
2026-04-03 11:29:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7c3f7eb5d84c127505b59afcc48c659b2b4ab9fe
7c3f7eb5
1 parent
6fee28d2
jira:NYJ-1460 desc:建表py
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
db/base.py
db/es_tb_init.py
db/base.py
View file @
7c3f7eb
...
...
@@ -28,3 +28,10 @@ class VectorDBClient(ABC):
bool: 连接正常返回True,否则返回False
"""
pass
class
TableInit
(
ABC
):
@abstractmethod
async
def
create_table
(
self
,
name
,
embedding_version
,
embedding_dim
)
->
None
:
pass
...
...
db/es_tb_init.py
0 → 100644
View file @
7c3f7eb
from
.base
import
TableInit
from
.
import
es_client
class
ESTableInit
(
TableInit
):
def
__init__
(
self
):
self
.
es_client
=
es_client
async
def
create_table
(
self
,
name
,
embedding_version
,
embedding_dim
)
->
None
:
pass
...
...
Please
register
or
login
to post a comment