Skip to content

Commit 9b316a5

Browse files
authored
docs: fix code snippet in retrievers/vectorstore article (#5249)
1 parent 5821eab commit 9b316a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core_docs/docs/modules/data_connection/retrievers/vectorstore.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const docs = await textSplitter.createDocuments([text]);
3636
const vectorStore = await HNSWLib.fromDocuments(docs, new OpenAIEmbeddings());
3737

3838
// Initialize a retriever wrapper around the vector store
39-
const vectorStoreRetriever = vectorStore.asRetriever();
39+
const retriever = vectorStore.asRetriever();
4040

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

0 commit comments

Comments
 (0)