Skip to content
Snippets Groups Projects
Commit ee293da4 authored by Sourabh Desai's avatar Sourabh Desai
Browse files

update test

parent 5a50ed2d
No related branches found
No related tags found
No related merge requests found
...@@ -134,11 +134,10 @@ describe("CallbackManager: onLLMStream and onRetrieve", () => { ...@@ -134,11 +134,10 @@ describe("CallbackManager: onLLMStream and onRetrieve", () => {
}); });
test("For ListIndex w/ a ListIndexRetriever", async () => { test("For ListIndex w/ a ListIndexRetriever", async () => {
const listIndex = await ListIndex.fromDocuments( const listIndex = await ListIndex.fromDocuments({
[document], documents: [document],
undefined, serviceContext,
serviceContext });
);
const queryEngine = listIndex.asQueryEngine(); const queryEngine = listIndex.asQueryEngine();
const query = "What is the author's name?"; const query = "What is the author's name?";
const response = await queryEngine.aquery(query); const response = await queryEngine.aquery(query);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment