ccfdac1286
2. fastAPI로 프로젝트 구조 실습 1. 랭체인 이미지 인식 후 처리 마무리 2. fastAPI로 프로젝트 구조 실습
9 lines
194 B
Python
9 lines
194 B
Python
from backend.ai.llm import watson_llm
|
|
|
|
# LLM 모델 통신
|
|
# 데이터베이스 통신
|
|
|
|
def question_and_answer(question):
|
|
response = watson_llm.invoke(question)
|
|
return response.content
|