// Initialize LlamaCppEmbeddings with the path to the model file constembeddings = newLlamaCppEmbeddings({ modelPath:"/Replace/with/path/to/your/model/gguf-llama2-q4_0.bin", });
// Embed a query string using the Llama embeddings constres = embeddings.embedQuery("Hello Llama!");
// Output the resulting embeddings console.log(res);
Example