You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File d:\MINIconda\envs\lc\lib\site-packages\langchain\vectorstores\chroma.py:528, in Chroma.from_texts(cls, texts, embedding, metadatas, ids, collection_name, persist_directory, client_settings, client, collection_metadata, **kwargs)
500 """Create a Chroma vectorstore from a raw documents.
...
52 ),
53 before_sleep=before_sleep_log(logger, logging.WARNING),
54 )
AttributeError: module 'openai' has no attribute 'error'
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
The text was updated successfully, but these errors were encountered:
AttributeError Traceback (most recent call last)
Cell In[13], line 10
6 split_docs = text_splitter.split_documents(docs)
8 embeddings = OpenAIEmbeddings()
---> 10 vectorstore = Chroma.from_documents(split_docs, embeddings, collection_name="serverless_guide")
File d:\MINIconda\envs\lc\lib\site-packages\langchain\vectorstores\chroma.py:564, in Chroma.from_documents(cls, documents, embedding, ids, collection_name, persist_directory, client_settings, client, collection_metadata, **kwargs)
562 texts = [doc.page_content for doc in documents]
563 metadatas = [doc.metadata for doc in documents]
--> 564 return cls.from_texts(
565 texts=texts,
566 embedding=embedding,
567 metadatas=metadatas,
568 ids=ids,
569 collection_name=collection_name,
570 persist_directory=persist_directory,
571 client_settings=client_settings,
572 client=client,
573 collection_metadata=collection_metadata,
574 **kwargs,
575 )
File d:\MINIconda\envs\lc\lib\site-packages\langchain\vectorstores\chroma.py:528, in Chroma.from_texts(cls, texts, embedding, metadatas, ids, collection_name, persist_directory, client_settings, client, collection_metadata, **kwargs)
500 """Create a Chroma vectorstore from a raw documents.
...
52 ),
53 before_sleep=before_sleep_log(logger, logging.WARNING),
54 )
AttributeError: module 'openai' has no attribute 'error'
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
The text was updated successfully, but these errors were encountered: