parent
a631df99d6
commit
73bada7433
@ -1,5 +1,4 @@
|
|||||||
from Milvus.Utils.MilvusCollectionManager import MilvusCollectionManager
|
from Backup.Milvus.Utils.MilvusCollectionManager import MilvusCollectionManager
|
||||||
from Milvus.Utils.MilvusConnectionPool import *
|
|
||||||
from Config.Config import *
|
from Config.Config import *
|
||||||
|
|
||||||
# 1. 使用连接池管理 Milvus 连接
|
# 1. 使用连接池管理 Milvus 连接
|
@ -1,6 +1,5 @@
|
|||||||
from Config.Config import *
|
from Config.Config import *
|
||||||
from Milvus.Utils.MilvusCollectionManager import MilvusCollectionManager
|
from Backup.Milvus.Utils.MilvusCollectionManager import MilvusCollectionManager
|
||||||
from Milvus.Utils.MilvusConnectionPool import *
|
|
||||||
from gensim.models import KeyedVectors
|
from gensim.models import KeyedVectors
|
||||||
import jieba
|
import jieba
|
||||||
import os
|
import os
|
@ -1,5 +1,4 @@
|
|||||||
from Milvus.Utils.MilvusCollectionManager import MilvusCollectionManager
|
from Backup.Milvus.Utils.MilvusCollectionManager import MilvusCollectionManager
|
||||||
from Milvus.Utils.MilvusConnectionPool import *
|
|
||||||
from Config.Config import *
|
from Config.Config import *
|
||||||
|
|
||||||
# 1. 使用连接池管理 Milvus 连接
|
# 1. 使用连接池管理 Milvus 连接
|
@ -1,7 +1,6 @@
|
|||||||
import time
|
import time
|
||||||
import jieba # 导入 jieba 分词库
|
import jieba # 导入 jieba 分词库
|
||||||
from Milvus.Utils.MilvusCollectionManager import MilvusCollectionManager
|
from Backup.Milvus.Utils.MilvusCollectionManager import MilvusCollectionManager
|
||||||
from Milvus.Utils.MilvusConnectionPool import *
|
|
||||||
from Config.Config import *
|
from Config.Config import *
|
||||||
from gensim.models import KeyedVectors
|
from gensim.models import KeyedVectors
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,26 +1,20 @@
|
|||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
import uuid
|
import uuid
|
||||||
from contextlib import asynccontextmanager
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from logging.handlers import RotatingFileHandler
|
from logging.handlers import RotatingFileHandler
|
||||||
from typing import List
|
from typing import List
|
||||||
|
|
||||||
import jieba # 导入 jieba 分词库
|
|
||||||
import uvicorn
|
import uvicorn
|
||||||
from fastapi import FastAPI, Request, HTTPException
|
from fastapi import FastAPI, Request, HTTPException
|
||||||
from fastapi.staticfiles import StaticFiles
|
from fastapi.staticfiles import StaticFiles
|
||||||
from gensim.models import KeyedVectors
|
from pydantic import BaseModel, Field
|
||||||
from pydantic import BaseModel, Field, ValidationError
|
|
||||||
from starlette.responses import StreamingResponse
|
from starlette.responses import StreamingResponse
|
||||||
|
|
||||||
from Config.Config import MS_MODEL_PATH, MS_MODEL_LIMIT, MS_HOST, MS_PORT, MS_MAX_CONNECTIONS, MS_NPROBE, \
|
from Config.Config import ES_CONFIG
|
||||||
MS_COLLECTION_NAME, ES_CONFIG
|
|
||||||
from Milvus.Utils.MilvusCollectionManager import MilvusCollectionManager
|
|
||||||
from Milvus.Utils.MilvusConnectionPool import *
|
|
||||||
from Milvus.Utils.MilvusConnectionPool import MilvusConnectionPool
|
|
||||||
from Util.ALiYunUtil import ALiYunUtil
|
from Util.ALiYunUtil import ALiYunUtil
|
||||||
from Util.EsSearchUtil import EsSearchUtil
|
from Util.EsSearchUtil import EsSearchUtil
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue