Код: Выделить всё
chunks = []
for path in file_paths: # path is a string filepath to a csv
chunks.extend(self.chunk_data(path))
chunks = filter_complex_metadata(chunks)
# add all relevant documents to chunks
# creates a unique cache for this dataset
cache_dir_name = "local_cache"
if not os.path.exists(cache_dir_name):
os.makedirs(cache_dir_name)
self.vector_store = Chroma.from_documents(documents=chunks,
embedding=FastEmbedEmbeddings(model_name="BAAI/bge-small-en",
cache_dir=cache_dir_name)) # crashes here
Код: Выделить всё
Fetching 5 files: 0%| | 0/5 [00:00
Подробнее здесь: [url]https://stackoverflow.com/questions/79383586/langchain-chroma-process-finished-with-exit-code-1073741819-0xc0000005-with[/url]
Мобильная версия