below is the code I am using to to add objects to a class.
splitter = RecursiveCharacterTextSplitter(
chunk_size=3000,
chunk_overlap=0
)
splitted_docs_list = splitter.split_documents(encrypted_docs)
for doc_content in splitted_docs_list:
doc_object = {
"content": doc_content.page_content,
"source": doc_content.metadata['source']
}
client.data_object.create(data_object=doc_object, class_name="Data")
Sometimes OpenAI returns an error
WeaviateBaseError("Creating object! Unexpected status code: 500, with response body: {'error': [{'message': 'update vector: unmarshal response body: json: cannot unmarshal number into Go struct field openAIApiError.error.code of type string'}]}.")
What might be causing this error ? Any way to view the error returned by openAI ?