File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -30,19 +30,19 @@ dependencies = [
3030 " cachetools ~= 6.2.1" ,
3131 " colorlog ~= 6.10.1" ,
3232 " fastapi ~= 0.119.0" ,
33- " langchain ~= 0.3.27 " ,
34- " langchain-community ~= 0.3.31 " ,
35- " langchain-core ~= 0.3.76 " ,
36- " langchain-openai ~= 0.3.35 " ,
37- " langfuse ~= 3.7 .0" ,
38- " langgraph ~= 0.6.10 " ,
33+ " langchain ~= 1.0.1 " ,
34+ " langchain-community ~= 0.4.0 " ,
35+ " langchain-core ~= 1.0.0 " ,
36+ " langchain-openai ~= 1.0.0 " ,
37+ " langfuse ~= 3.8 .0" ,
38+ " langgraph ~= 1.0.1 " ,
3939 " langsmith ~= 0.4.37" ,
4040 " fastmcp ~= 2.12.5" ,
4141 " pymilvus ~= 2.6.2" ,
4242 " python-dotenv ~= 1.1.1" ,
4343 " tiktoken ~= 0.12.0" ,
4444 " tqdm ~= 4.67.1" ,
45- " uvicorn ~= 0.37 .0" ,
45+ " uvicorn ~= 0.38 .0" ,
4646]
4747
4848[project .optional-dependencies ]
Original file line number Diff line number Diff line change 1010from typing import Annotated , Literal , TypedDict
1111
1212from cachetools import TTLCache , cached
13- from langchain import hub
1413from langchain_core .messages import BaseMessage
1514from langchain_core .prompts import (
1615 ChatPromptTemplate ,
2625from langgraph .graph import END , START , StateGraph
2726from langgraph .graph .state import CompiledStateGraph
2827from langgraph .runtime import Runtime
28+ from langsmith .client import Client
2929from pymilvus import AnnSearchRequest , MilvusClient , WeightedRanker
3030
3131import wiki_rag .index as index
@@ -129,7 +129,7 @@ def load_prompts_for_rag(prompt_name: str) -> ChatPromptTemplate:
129129 prefixed_prompt_name = f"{ os .getenv ("LANGSMITH_PROMPT_PREFIX" )} { prompt_name } "
130130 logger .info (f"Loading the prompt { prefixed_prompt_name } from LangSmith." )
131131 prompt_provider = "LangSmith"
132- chat_prompt = hub . pull (prefixed_prompt_name )
132+ chat_prompt = Client (). pull_prompt (prefixed_prompt_name )
133133 elif os .getenv ("LANGFUSE_PROMPTS" , "false" ) == "true" :
134134 langfuse = Langfuse ()
135135 prefixed_prompt_name = f"{ os .getenv ("LANGFUSE_PROMPT_PREFIX" )} { prompt_name } "
You can’t perform that action at this time.
0 commit comments