ValueError: The de-serialization relies loading a pickle file.
Pickle files can be modified to deliver a malicious payload that results in execution of arbitrary code on your machine.
You will need to set `allow_dangerous_deserialization` to `True` to enable deserialization.
If you do this, make sure that you trust the source of the data. For example, if you are loading a file that you created,
and know that no one else has modified the file, then this is safe to do.
Do not set this to `True` if you are loading a file from an untrusted source
(e.g., some random site on the internet.)."
메모리 절약을 위해 vector store를 faiss를 통해 미리 로드하고자 했으나
클라우드에서 위와 같은 에러가 발생
에러의 내용은 신뢰할 수 없는 파일
다른 사람이 수정하거나 배포한 것이 아니라면
파일을 허용하라는 것으로 판단 vector store를 로드하는 시점에
allow_dangerous_deserialization을 True로 설정
'개발일지 > BrewWing' 카테고리의 다른 글
| Trouble Shooting: "status.code": 4 (0) | 2025.04.14 |
|---|---|
| TroubleShooting: Traceback Error (0) | 2025.02.04 |
| TroubleShooting: 번역 텍스트 줄바꿈 없어짐 문제 (0) | 2025.02.04 |
| 번역 기능 추가 (1) | 2025.02.04 |
| TroubleShooting: Llama 답변 구조 문제 (0) | 2025.01.29 |