Skip to content

Commit

Permalink
docs: fix code snippet in retrievers/vectorstore article (#5249)
Browse files Browse the repository at this point in the history
  • Loading branch information
sis0k0 committed Apr 29, 2024
1 parent 5821eab commit 9b316a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const docs = await textSplitter.createDocuments([text]);
const vectorStore = await HNSWLib.fromDocuments(docs, new OpenAIEmbeddings());

// Initialize a retriever wrapper around the vector store
const vectorStoreRetriever = vectorStore.asRetriever();
const retriever = vectorStore.asRetriever();

const docs = await retriever.getRelevantDocuments(
"what did he say about ketanji brown jackson"
Expand Down

0 comments on commit 9b316a5

Please sign in to comment.