I am trying to create a RAG model. I am connecting it to a Chromadb. When I run my python script without connecting to streamlit, it works fine. When I connect it to streamlit and run it, it fails and exits with the following message:
E1126 10:40:32.402000000 12416 grpc_ares_ev_driver_windows.cc:311] ASSERTION FAILED: *from_len <= recv_from_source_addr_len_
After debugging, it seems it fails at the following:
# Add chunks with source info to ChromaDB collection
for i, (chunk, source) in enumerate(chunks):
collection.add(documents=[chunk], metadatas=[{"source": source}], ids=[str(i)])
I am running the script using an anaconda environment.