public static VectorStoreRAM readFromFile(FlagConfig flagConfig,String vectorFile) throws IOException {
  if (vectorFile.isEmpty()) {
    throw new IllegalArgumentException("vectorFile argument cannot be empty.");
  }
  VectorStoreRAM store=new VectorStoreRAM(flagConfig);
  store.initFromFile(vectorFile);
  return store;
}

public static VectorStoreRAM readFromFile ( FlagConfig flagConfig , String vectorFile ) throws IOException { if ( vectorFile . isEmpty ( ) ) { throw new IllegalArgumentException ( "vectorFile argument cannot be empty." ) ; } VectorStoreRAM store = new VectorStoreRAM ( flagConfig ) ; store . initFromFile ( vectorFile ) ; return store ; }
returns a new vector store , initialized from disk with the given vectorfile . dimension and vector type from store on disk may overwrite any previous values in flagconfig .
