Skip to content

Commit

Permalink
Update import paths in integrations tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Apr 9, 2023
1 parent 1f8df25 commit 7b0bde0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion langchain/src/callbacks/tests/langchain_tracer.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { test, expect } from "@jest/globals";

import { LangChainTracer } from "../tracers.js";
import { OpenAI } from "../../llms/index.js";
import { OpenAI } from "../../llms/openai.js";
import { SerpAPI } from "../../tools/index.js";
import { Calculator } from "../../tools/calculator.js";
import { initializeAgentExecutor } from "../../agents/index.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { LLMChain } from "../llm_chain.js";
import { StuffDocumentsChain } from "../combine_docs_chain.js";
import { ChatVectorDBQAChain } from "../chat_vector_db_chain.js";
import { HNSWLib } from "../../vectorstores/hnswlib.js";
import { OpenAIEmbeddings } from "../../embeddings/index.js";
import { OpenAIEmbeddings } from "../../embeddings/openai.js";

test("Test ChatVectorDBQAChain", async () => {
const model = new OpenAI({ modelName: "text-ada-001" });
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/chains/tests/llm_chain.int.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { test } from "@jest/globals";
import { OpenAI } from "../../llms/openai.js";
import { ChatOpenAI } from "../../chat_models/index.js";
import { ChatOpenAI } from "../../chat_models/openai.js";
import {
ChatPromptTemplate,
HumanMessagePromptTemplate,
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/chains/tests/vector_db_qa_chain.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { loadChain } from "../load.js";
import { StuffDocumentsChain } from "../combine_docs_chain.js";
import { VectorDBQAChain } from "../vector_db_qa.js";
import { HNSWLib } from "../../vectorstores/hnswlib.js";
import { OpenAIEmbeddings } from "../../embeddings/index.js";
import { OpenAIEmbeddings } from "../../embeddings/openai.js";

test("Test VectorDBQAChain", async () => {
const model = new OpenAI({ modelName: "text-ada-001" });
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/retrievers/tests/supabase.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
import { test, expect } from "@jest/globals";
import { createClient } from "@supabase/supabase-js";
import { OpenAIEmbeddings } from "../../embeddings/index.js";
import { OpenAIEmbeddings } from "../../embeddings/openai.js";
import { SupabaseHybridSearch } from "../supabase.js";

test("Supabase hybrid keyword search", async () => {
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/vectorstores/tests/hnswlib.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as path from "node:path";
import * as os from "node:os";

import { HNSWLib } from "../hnswlib.js";
import { OpenAIEmbeddings } from "../../embeddings/index.js";
import { OpenAIEmbeddings } from "../../embeddings/openai.js";
import { Document } from "../../document.js";

test("Test HNSWLib.fromTexts", async () => {
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/vectorstores/tests/pinecone.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { faker } from "@faker-js/faker";
import { PineconeClient } from "@pinecone-database/pinecone";
import { v4 as uuidv4 } from "uuid";
import { Document } from "../../document.js";
import { OpenAIEmbeddings } from "../../embeddings/index.js";
import { OpenAIEmbeddings } from "../../embeddings/openai.js";
import { PineconeStore } from "../pinecone.js";

describe("PineconeStore", () => {
Expand Down
2 changes: 1 addition & 1 deletion langchain/src/vectorstores/tests/supabase.int.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { test, expect } from "@jest/globals";
import { createClient } from "@supabase/supabase-js";

import { OpenAIEmbeddings } from "../../embeddings/index.js";
import { OpenAIEmbeddings } from "../../embeddings/openai.js";
import { Document } from "../../document.js";
import { SupabaseVectorStore } from "../supabase.js";

Expand Down

0 comments on commit 7b0bde0

Please sign in to comment.