작성
·
11
0
3.3 LangChain 없이 구성하는 RAG의 불편함.ipynb
의 8번째
tax_collection = chroma_client.get_or_create_collection(collection_name, embedding_function=openai_embedding)
에서 아래의 에러가 납니다.
ValueError: An embedding function already exists in the collection configuration, and a new one is provided. If this is intentional, please embed documents separately. Embedding function conflict: new: openai vs persisted: default
어떻게 해야하나요?
답변 1
0
안녕하세요, 에러 메세지로 볼 때는 collection이 이미 존재하는 경우인 것 같습니다. 혹시 앞에서 진행하신 코드와 같은 이름을 사용하신다면 로컬에 생성된 크로마 디렉토리를 한번 지우고 다시 시도해보시거나, 임베딩 함수를 기준 컬렉션과 동일한 걸 사용하셔야 될 것 같습니다