Skip to content
Snippets Groups Projects
Commit 9c5220ce authored by Logan Markewich's avatar Logan Markewich
Browse files

fix tests

parent 8c676350
Branches
Tags
No related merge requests found
......@@ -67,8 +67,7 @@ describe("CallbackManager: onLLMStream and onRetrieve", () => {
test("For VectorStoreIndex w/ a SimpleResponseBuilder", async () => {
const vectorStoreIndex = await VectorStoreIndex.fromDocuments(
[document],
undefined,
serviceContext
{ serviceContext }
);
const queryEngine = vectorStoreIndex.asQueryEngine();
const query = "What is the author's name?";
......@@ -138,10 +137,10 @@ describe("CallbackManager: onLLMStream and onRetrieve", () => {
});
test("For ListIndex w/ a ListIndexRetriever", async () => {
const listIndex = await ListIndex.fromDocuments({
documents: [document],
serviceContext,
});
const listIndex = await ListIndex.fromDocuments(
[document],
{ serviceContext },
);
const responseBuilder = new SimpleResponseBuilder(serviceContext);
const responseSynthesizer = new ResponseSynthesizer({
serviceContext: serviceContext,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment