@langchain/community
Version:
Third-party integrations for LangChain.js
11 lines (10 loc) • 416 B
JavaScript
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");
});
});