str' object has no attribute 'page_content' #17699
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
🔌: chroma
Primarily related to ChromaDB integrations
Ɑ: vector store
Related to vector store module
Checked other resources
Example Code
vectordb = Chroma.from_documents(documents=chunks
, embedding=embeddings) I am using this code to solve problem but I am not able to solve its showing ttributeError Traceback (most recent call last)
in <cell line: 1>()
----> 1 vectordb = Chroma.from_documents(documents=chunks
2 , embedding=embeddings)
1 frames
/usr/local/lib/python3.10/dist-packages/langchain_community/vectorstores/chroma.py in (.0)
774 Chroma: Chroma vectorstore.
775 """
--> 776 texts = [doc.page_content for doc in documents]
777 metadatas = [doc.metadata for doc in documents]
778 return cls.from_texts(
AttributeError: 'str' object has no attribute 'page_content'
Error Message and Stack Trace (if applicable)
No response
Description
I am using langchain to create chunks and perform vector embedding throughcgroma db , How can I change it into
System Info
I am using Mac
The text was updated successfully, but these errors were encountered: