🚀 Add feature: Charging in Milvus is now working
This commit is contained in:
parent
f9e5a6e013
commit
64832e2989
23 changed files with 354 additions and 109 deletions
|
@ -1,5 +1,6 @@
|
|||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
import dotenv
|
||||
from minio import Minio
|
||||
|
@ -8,6 +9,13 @@ from app.models import AvailableSource, AvailableSourcesResponse
|
|||
|
||||
dotenv.load_dotenv()
|
||||
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
||||
datefmt="%Y-%m-%d %H:%M:%S",
|
||||
stream=sys.stdout
|
||||
)
|
||||
|
||||
logger = logging.getLogger("base_logger")
|
||||
|
||||
available_sources = AvailableSourcesResponse(
|
||||
|
@ -99,3 +107,8 @@ minio_client = Minio(
|
|||
secret_key=minio_secret_key,
|
||||
secure=minio_secure
|
||||
)
|
||||
|
||||
ollama_url = os.environ.get("OLLAMA_URL", "http://host.docker.internal:11434")
|
||||
|
||||
embedding_model_name = os.environ.get("OLLAMA_EMBEDDING_MODEL_NAME",
|
||||
"snowflake-arctic-embed2")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue