본문 바로가기

Programming/AI

[챗봇프로젝트] 2일차. 데이터베이스 구성 및 완성

반응형

 

❗[데이터베이스 구성]

ChatGPT의 추천으로 VectorDB의 일종인 ChromaDB를 사용하려고 한다

조금 찾아보니 이러한 VectorDB를 활용하면 유사도 연산을 하기에 편리하다고 한다.

이 때, 내 방 라즈베리파이 4B에 있는 docker 환경에 구축하고자 다음 명령어를 활용해 이미지를 다운받았다.

docker pull chromadb/chroma:latest

 

 

 

실행할 때는 다음 명령어를 활용했다.

docker run -d --name chromadb -p 8000:8000 -v ~/Desktop/docker/chroma-db:/chroma/chroma -e IS_PERSISTENT=TRUE -e ANONYMIZED_TELEMETRY=TRUE chromadb/chroma:latest

 

 

 

해당 부분은 다음 문서를 참고하였다.

https://m.blog.naver.com/pjt3591oo/223590941645

 

[chroma] vector database chroma를 알아보자

안녕하세요 멍개입니다. 이번 시간은 vector database인 chroma를 알아보겠습니다. vector database란 벡터...

blog.naver.com

 

 

 

이후, ChatGPT가 만들어준 Backend 코드를 만들고, uvicorn을 통해 FastAPI 프로젝트를 실행했다.

 

 

❗[완성된 모습]

 

아주 잘 된다!

 

 

 

 

 

❗[지금까지 사용한 ChatGPT 프롬프트]

https://chatgpt.com/share/693a174d-88ec-800f-bf5c-6e0a3a944e78

 

ChatGPT - 챗봇 서비스 구현 방법

Shared via ChatGPT

chatgpt.com

 

https://chatgpt.com/share/693a176f-c734-800f-9705-66882559cbab

 

ChatGPT - Ollama와 Gemma3 역할

Shared via ChatGPT

chatgpt.com

 

https://chatgpt.com/share/693a1775-de14-800f-bff2-af80f66b2954

 

ChatGPT - 모델 차이점 설명

Shared via ChatGPT

chatgpt.com

 

https://chatgpt.com/share/6933eab1-ac08-800f-b2b8-ff24bc71ce70

 

ChatGPT - Payload 역할 설명

Shared via ChatGPT

chatgpt.com

 

https://chatgpt.com/share/6933ee37-c21c-800f-b1d9-a21b04b878f4

 

ChatGPT - 스트리밍 오류 해결법

Shared via ChatGPT

chatgpt.com

 

https://chatgpt.com/share/693a1796-c540-800f-bbcf-6fd724c0bcfa

 

ChatGPT - 마크다운 자동 변환 처리

Shared via ChatGPT

chatgpt.com

 

https://chatgpt.com/share/693a179a-80d4-800f-b905-f65333ac018c

 

ChatGPT - SSL 지원 코드 수정

Shared via ChatGPT

chatgpt.com

 

https://chatgpt.com/share/693a17e4-aa78-800f-9f0a-dc7d29b09479

 

ChatGPT - 코드 에러 수정

Shared via ChatGPT

chatgpt.com

 

https://chatgpt.com/share/693a1821-c7a4-800f-88d8-09649d29ca3b

 

ChatGPT - 422 오류 해결법

Shared via ChatGPT

chatgpt.com

 

 

 

 

 

 

 

 

 

 

 

반응형