public static void writeVectorsInTextFormat(String vectorFileName,FlagConfig flagConfig,VectorStore objectVectors) throws IOException {
  VerbatimLogger.info("About to write " + objectVectors.getNumVectors() + " vectors of dimension "+ flagConfig.dimension()+ " to text file: "+ vectorFileName+ " ... ");
  BufferedWriter outBuf=new BufferedWriter(new FileWriter(vectorFileName));
  writeToTextBuffer(objectVectors,flagConfig,outBuf);
  outBuf.close();
  VerbatimLogger.info("finished writing vectors.\n");
}

public static void writeVectorsInTextFormat ( String vectorFileName , FlagConfig flagConfig , VectorStore objectVectors ) throws IOException { VerbatimLogger . info ( "About to write " + objectVectors . getNumVectors ( ) + " vectors of dimension " + flagConfig . dimension ( ) + " to text file: " + vectorFileName + " ... " ) ; BufferedWriter outBuf = new BufferedWriter ( new FileWriter ( vectorFileName ) ) ; writeToTextBuffer ( objectVectors , flagConfig , outBuf ) ; outBuf . close ( ) ; VerbatimLogger . info ( "finished writing vectors.\n" ) ; }
outputs a vector store as a plain text file .
