Skip to content

Commit

Permalink
Fix wrongly awaited new in LanceDB example (langchain-ai#1802)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksjogo authored Jun 29, 2023
1 parent 360ae0b commit a90e8f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/src/indexes/vector_stores/lancedb/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const run = async () => {
const db = await connect(uri);
const table = await db.openTable("vectors");

const vectorStore = await new LanceDB(new OpenAIEmbeddings(), { table });
const vectorStore = new LanceDB(new OpenAIEmbeddings(), { table });

const resultOne = await vectorStore.similaritySearch("hello world", 1);
console.log(resultOne);
Expand Down

0 comments on commit a90e8f5

Please sign in to comment.