Skip to content

Commit

Permalink
templates: fix deps (#15439)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed Jan 3, 2024
1 parent 70beb2e commit 69a8a26
Show file tree
Hide file tree
Showing 255 changed files with 59,555 additions and 46,415 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from langchain.prompts import ChatPromptTemplate
from langchain_community.chat_models import ChatAnthropic
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.pydantic_v1 import BaseModel
from langchain_core.runnables import ConfigurableField

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from langchain.agents import AgentExecutor
from langchain.prompts import ChatPromptTemplate
from langchain_community.chat_models import ChatAnthropic
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import RunnableParallel, RunnablePassthrough

from .agent_scratchpad import format_agent_scratchpad
Expand Down
887 changes: 470 additions & 417 deletions templates/anthropic-iterative-search/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/anthropic-iterative-search/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain = ">=0.0.325"
langchain = ">=0.0.353,<0.2"
anthropic = "^0.5.0"
wikipedia = "^1.4.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from typing import Any, Dict, Sequence

from langchain.chains.openai_functions import convert_to_openai_function
from langchain.prompts import ChatPromptTemplate
from langchain_community.chat_models import ChatOpenAI
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.pydantic_v1 import BaseModel, Field, ValidationError, conint
from langchain_core.runnables import (
Runnable,
Expand Down
884 changes: 469 additions & 415 deletions templates/basic-critique-revise/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/basic-critique-revise/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain = ">=0.0.313, <0.1"
langchain = ">=0.0.353,<0.2"
openai = "<2"

[tool.poetry.group.dev.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion templates/bedrock-jcvd/bedrock_jcvd/chain.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from langchain.prompts import ChatPromptTemplate
from langchain_community.chat_models import BedrockChat
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import ConfigurableField

# For a description of each inference parameter, see
Expand Down
582 changes: 315 additions & 267 deletions templates/bedrock-jcvd/poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions templates/bedrock-jcvd/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ uvicorn = "^0.23.2"
langserve = {extras = ["server"], version = ">=0.0.30"}
pydantic = "<2"
boto3 = "^1.33.10"
langchain = ">=0.0.353,<0.2"

[tool.langserve]
export_module = "bedrock_jcvd.chain"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import os

import cassio
from langchain.prompts import ChatPromptTemplate
from langchain_community.chat_models import ChatOpenAI
from langchain_community.embeddings import OpenAIEmbeddings
from langchain_community.vectorstores import Cassandra
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import RunnablePassthrough

from .populate_vector_store import populate
Expand Down
1,241 changes: 654 additions & 587 deletions templates/cassandra-entomology-rag/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/cassandra-entomology-rag/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain = ">=0.0.325"
langchain = ">=0.0.353,<0.2"
openai = "<2"
tiktoken = "^0.5.1"
cassio = "^0.1.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import cassio
import langchain
from langchain.cache import CassandraCache
from langchain.prompts import ChatPromptTemplate
from langchain.schema import BaseMessage
from langchain_community.chat_models import ChatOpenAI
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import RunnableLambda

use_cassandra = int(os.environ.get("USE_CASSANDRA_CLUSTER", "0"))
Expand Down
1,241 changes: 654 additions & 587 deletions templates/cassandra-synonym-caching/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/cassandra-synonym-caching/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain = ">=0.0.325"
langchain = ">=0.0.353,<0.2"
openai = "<2"
tiktoken = "^0.5.1"
cassio = "^0.1.3"
Expand Down
907 changes: 480 additions & 427 deletions templates/chain-of-note-wiki/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/chain-of-note-wiki/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain = ">=0.0.313, <0.1"
langchain = ">=0.0.353,<0.2"
anthropic = "^0.7.0"
wikipedia = "^1.4.0"
langchainhub = "^0.1.14"
Expand Down
2 changes: 1 addition & 1 deletion templates/chat-bot-feedback/chat_bot_feedback/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from langchain.callbacks.tracers.evaluation import EvaluatorCallbackHandler
from langchain.callbacks.tracers.schemas import Run
from langchain.output_parsers.openai_functions import JsonOutputFunctionsParser
from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder
from langchain.schema import (
AIMessage,
BaseMessage,
Expand All @@ -15,6 +14,7 @@
get_buffer_string,
)
from langchain_community.chat_models import ChatOpenAI
from langchain_core.prompts import ChatPromptTemplate, MessagesPlaceholder
from langchain_core.pydantic_v1 import BaseModel, Field
from langchain_core.runnables import Runnable
from langsmith.evaluation import EvaluationResult, RunEvaluator
Expand Down
890 changes: 472 additions & 418 deletions templates/chat-bot-feedback/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/chat-bot-feedback/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
langchain = ">=0.0.329"
langchain = ">=0.0.353,<0.2"
openai = "<2"
langsmith = ">=0.0.54"
langchainhub = ">=0.1.13"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import csv

from langchain.chains.question_answering import load_qa_chain
from langchain.prompts import PromptTemplate
from langchain_community.embeddings import CohereEmbeddings
from langchain_community.vectorstores import Chroma
from langchain_core.prompts import PromptTemplate

from .chat import chat

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from langchain.prompts import (
from langchain_core.prompts import (
ChatPromptTemplate,
HumanMessagePromptTemplate,
SystemMessagePromptTemplate,
Expand Down
2 changes: 1 addition & 1 deletion templates/cohere-librarian/cohere_librarian/router.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from langchain.prompts import ChatPromptTemplate
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import ChatPromptTemplate
from langchain_core.runnables import RunnableBranch

from .blurb_matcher import book_rec_chain
Expand Down

0 comments on commit 69a8a26

Please sign in to comment.