Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -611,15 +611,13 @@ describe("embedding function null vs undefined handling", () => {
const schema = new Schema();
const providedEf = new DefaultSpaceCustomEmbeddingFunction("i_want_l2", 5);

try {
const collection = await client.createCollection({
await expect(
client.createCollection({
name: "test_provided_over_schema",
schema,
embeddingFunction: providedEf,
});
} catch (error) {
expect(error).toBeDefined();
}
}),
).rejects.toBeDefined();
});
test("it should use provided embedding function if no schema", async () => {
const providedEf = new DefaultSpaceCustomEmbeddingFunction("i_want_l2", 5);
Expand Down