JunYupK / recr-awling

맞춤형 개발자 채용공고 크롤링(회사 및 직군별)
0 stars 0 forks source link

[LLM] chatClient Bean 등록 문제 발생 #3

Open JunYupK opened 3 weeks ago

JunYupK commented 3 weeks ago

Ollama과 Spring AI를 연동 중 지속적으로

Description:

Parameter 0 of constructor in com.recruit.recrawling.llama.LlamaController required a bean of type 'org.springframework.ai.chat.client.ChatClient' that could not be found.

에러가 발생하였습니다.

application.yml 쪽에서 Bean을 등록해주어야 하는데 chatClient가 여러 클라이언트를 사용하다 꼬여버린 것 같습니다. 공식문서상에도 찾을 수 없어 해결법을 탐색해봐야 할 것 같음

JunYupK commented 3 weeks ago

또한 gradle 설정 시 자꾸 오류가 생겼는데 implementation 'org.springframework.ai:spring-ai-ollama-spring-boot-starter:1.0.0-SNAPSHOT' 다음과 같이 버전을 명시해주지 않으면 해당 패키지를 찾지 못하는 오류가 있습니다. 아직 spring AI가 출시된지 얼마 안되어서 생기는 오류 같습니다.

JunYupK commented 3 weeks ago

https://haandol.github.io/2023/10/05/extract-information-from-url-using-llm.html

JunYupK commented 3 weeks ago

ollama와 langchain spring ai vs python 서버 llm을 굳이 url 생성에 사용해야 하는가?