기본 콘텐츠로 건너뛰기

라벨이 스승의날인 게시물 표시

[2024-04-19] ChatGPT LangChain 에서 사용할 Vector Store 중 ChromaDB의 오류 해결 방법

ChatGPT LangChain 에서 사용할 Vector Store 중 ChromaDB의 오류 해결 방법 안녕하세요. 클스 입니다. LangChain과 vector db 중 하나인 ChromaDB를 사용하는데, 아래같은 오류가 발생합니다. RuntimeError: Chroma is running in http-only client mode, and can only be run with 'chromadb.api.fastapi.FastAPI' as the chroma_api_impl. 작업한 내용 $ pip install chromadb chromadb-client $ pip show chromadb       Name: chromadb     Version: 0.4.24   ==> 최신 stable 버전입니다.    Summary: Chroma. $ pip show chromadb-client             Name: chromadb-client     Version: 0.4.25.dev0       ==> 최신 개발 버전입니다.    Summary: Chroma Client. 원인 * chromadb와 chromadb-client가 충돌이 발생해서 생기는 문제입니다. 해결 방법 삭제후 chroadb 만 설치한다. * > $ pip uninstall chromadb chromadb-client * > $ pip install chromadb import chromadb client = chromadb.PersistentClient(path="/path/to/save/to") * HttpClient를 이용하려면 chromadb를 서버로 띄우면 된다. $ chroma run --path /path/to/s...