UNPKG

@langchain/community

Version:
11 lines (10 loc) 416 B
import { describe, test, expect } from "@jest/globals"; import { PremEmbeddings } from "../premai.js"; describe("EmbeddingsPrem", () => { test.skip("Test embedQuery", async () => { const client = new PremEmbeddings({ model: "@cf/baai/bge-small-en-v1.5" }); const res = await client.embedQuery("Hello world"); // console.log(res); expect(typeof res[0]).toBe("number"); }); });