Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit 1b866bc

Browse files
committed
update langchain retriever to be scoped package
1 parent 7d09805 commit 1b866bc

File tree

14 files changed

+6869
-1220
lines changed

14 files changed

+6869
-1220
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import {
55
} from "@langchain/core/runnables";
66
import { PromptTemplate } from "@langchain/core/prompts";
77
import { StringOutputParser } from "@langchain/core/output_parsers";
8-
import { IndexifyClient, IndexifyRetriever } from "getindexify";
8+
import { IndexifyClient } from "getindexify";
9+
import { IndexifyRetriever } from "@getindexify/langchain";
910
import { formatDocumentsAsString } from "langchain/util/document";
1011

1112
(async () => {
@@ -21,6 +22,7 @@ import { formatDocumentsAsString } from "langchain/util/document";
2122

2223
await new Promise((r) => setTimeout(r, 5000));
2324

25+
// setup retriever
2426
const retriever = new IndexifyRetriever(client, {
2527
name: "minilml6.embedding",
2628
topK: 9,

0 commit comments

Comments
 (0)