Nikhil Singh

Results 2 comments of Nikhil Singh

`data = [field_1, field_2, field_3] batch_size = 10000 for i in range(0, len(data), batch_size): data_batch = [list(field_1[i:i+batch_size]),list(field_2[i:i+batch_size]), list(field_3[i:i+batch_size])] collection.insert(data_batch)` This is how I insert data in bulk. Basically, field 1,2...

The script tries to load models from the "models" directory in the code folder. You just need to download the model and put it in the directory. https://gpt4all.io/models/ggml-gpt4all-j-v1.3-groovy.bin https://huggingface.co/Pi3141/alpaca-native-7B-ggml/resolve/397e872bf4c83f4c642317a5bf65ce84a105786e/ggml-model-q4_0.bin Above...