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
The error occurred at the last line of the code. Here's the error (a bit long, so I only show the last 3 lines. I've uploaded the complete errormsg text):
File "C:\Users\xx_user\AppData\Local\miniconda3\envs\yy_project\Lib\site-packages\chromadb\api\types.py", line 800, in validate_documents
raise ValueError(f"Expected document to be a str, got {document}")
ValueError: Expected document to be a str, got 1 in add.
Please note that the library was already created using fast start example 1 and I was able to do a text query without issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I ran into error while embedding using library.install_new_embedding function. Here's a simple code I copied from fast start example 2:
LLMWareConfig().set_active_db('sqlite')
LLMWareConfig().set_vector_db('chromadb')
library = Library().load_library('hr_documents')
embedding_model = 'all_mpnet-base-v2'
vector_db = LLMWareConfig().get_vector_db()
library.install_new_embedding(embedding_model_name=embedding_model, vector_db=vector_db, batch_size=100)
The error occurred at the last line of the code. Here's the error (a bit long, so I only show the last 3 lines. I've uploaded the complete errormsg text):
File "C:\Users\xx_user\AppData\Local\miniconda3\envs\yy_project\Lib\site-packages\chromadb\api\types.py", line 800, in validate_documents
raise ValueError(f"Expected document to be a str, got {document}")
ValueError: Expected document to be a str, got 1 in add.
Please note that the library was already created using fast start example 1 and I was able to do a text query without issue.
Appreciate any help I can get. Thank you.
errorlog.txt
Beta Was this translation helpful? Give feedback.
All reactions