ccfdac1286
2. fastAPI로 프로젝트 구조 실습 1. 랭체인 이미지 인식 후 처리 마무리 2. fastAPI로 프로젝트 구조 실습
9 lines
312 B
Python
9 lines
312 B
Python
from langchain_ibm import WatsonxEmbeddings
|
|
from backend.config.settings import settings
|
|
|
|
watson_embedding = WatsonxEmbeddings(
|
|
model_id="ibm/granite-embedding-278m-multilingual",
|
|
url=f"{settings.watsonx_url}",
|
|
api_key=f"{settings.watsonx_api_key}",
|
|
project_id=f"{settings.watsonx_project_id}",
|
|
) |