Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade deps #22

Merged
merged 7 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@
"packageManager": "yarn@4.1.1",
"resolutions": {
"@datastax/astra-db-ts": "1.0.1",
"@langchain/azure-openai": "0.0.2",
"@langchain/community": "0.0.48",
"@langchain/core": "0.1.57",
"@langchain/openai": "0.0.28",
"@langchain/community": "0.2.4",
"@langchain/core": "0.2.2",
"@langchain/openai": "0.0.34",
"cassandra-driver": "4.7.2",
"langchain": "0.1.33",
"langsmith": "0.1.8"
"langchain": "0.2.3",
"langsmith": "0.1.8",
"@langchain/google-vertexai": "0.0.17",
"@langchain/azure-openai": "0.0.2"
}
}
9 changes: 5 additions & 4 deletions packages/ragstack-ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
"dependencies": {
"@datastax/astra-db-ts": "1.0.1",
"@langchain/azure-openai": "0.0.2",
"@langchain/community": "0.0.48",
"@langchain/core": "0.1.57",
"@langchain/openai": "0.0.28",
"@langchain/community": "0.2.4",
"@langchain/core": "0.2.2",
"@langchain/google-vertexai": "0.0.17",
"@langchain/openai": "0.0.34",
"cassandra-driver": "4.7.2",
"langchain": "0.1.33",
"langchain": "0.2.3",
"langsmith": "0.1.8"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ import {GoogleVertexAIEmbeddings} from "@langchain/community/embeddings/googleve
import {ChatGoogleVertexAI} from "@langchain/community/chat_models/googlevertexai";
import {BedrockChat} from "@langchain/community/chat_models/bedrock";
import {BedrockEmbeddings} from "@langchain/community/embeddings/bedrock";
import {GoogleVertexAIMultimodalEmbeddings} from "langchain/experimental/multimodal_embeddings/googlevertexai";
import * as path from "node:path";
import { EmbeddingsInterface} from "@langchain/core/embeddings";
import {ChatGoogleGenerativeAI} from "@langchain/google-genai";
import {AIMessage, HumanMessage} from "@langchain/core/messages";
import {expect} from "@jest/globals";
import {randomUUID} from "node:crypto";
import {
GoogleVertexAIMultimodalEmbeddings
} from "@langchain/community/experimental/multimodal_embeddings/googlevertexai";


function vertexSetup() {
Expand Down Expand Up @@ -192,7 +194,7 @@ describe("RAG pipeline compatibility", () => {
]
const embeddingsLLM: Array<EmbeddingsLLMPair> = [
{embeddings: openAIEmbeddings, llm: openAILLM},
{embeddings: azureOpenAIEmbeddings, llm: azureOpenAILLM},
// {embeddings: azureOpenAIEmbeddings, llm: azureOpenAILLM},
{embeddings: vertexEmbeddings, llm: vertexLLM},
{embeddings: bedrockTitanEmbeddings, llm: bedrockAnthropicLLM},
// cohere is broken
Expand Down Expand Up @@ -292,7 +294,7 @@ describe("Multimodal RAG", () => {
new CassandraVectorStoreSupplier()
]
const embeddingsLLM: Array<EmbeddingsLLMPair> = [
{embeddings: vertexMultiModalEmbeddings, llm: geminiLLM},
// {embeddings: vertexMultiModalEmbeddings, llm: geminiLLM},
]
const ragCombinations: Array<RAGCombination> = []
const ragCombinationsToSkip: Array<RAGCombination> = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ value7,value8,value9`;
for (const doc of split) {
expect(doc.metadata.filename).toBe("tree.pdf")
expect(doc.metadata.filetype).toBe("application/pdf")
expect(doc.metadata.category).toMatch(/(Title|NarrativeText)/)
expect(doc.metadata.category).toMatch(/(Title|NarrativeText|Image)/)
}
})

Expand Down
Loading
Loading