Hey Team, We are adding a custom retriever for search, where we require a metadata field (array of string) added under the metadata but while doing so we received the following error [Attached Screenshot: Llama-index insertion.png]. But when we tried with pinecone core package, we are able to successfully upsert the document [Attached Screenshot: Pinecone insertion.png].
I also remember this is already being discusesd by earlier [Sorry, Couldn't find the ref to exact thread] Any estim. here how long it might gonna take for this functionality to be added in llama-index for pinecone?
Did you try inserting the metadata like this? some vector databases require that the keys must be strings, and the values must be flat (either str, float, or int)
Plain Text
from llama_index import SimpleDirectoryReader
filename_fn = lambda filename: {'file_name': filename}
# automatically sets the metadata of each document according to filename_fn
documents = SimpleDirectoryReader('./data', file_metadata=filename_fn).load_data()