Skip to content

Commit

Permalink
feat: 降低langgraph的版本,解决和langchain依赖冲突的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zgqgit committed Jul 10, 2024
1 parent ead1233 commit fc1ae56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/backend/bisheng/api/services/assistant_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ async def react_run(self, query: str, chat_history: List = None, callback: Callb
'input': query,
'chat_history': chat_history
}, config=RunnableConfig(callbacks=callback))
print(result)
logger.debug(f"react_run result: {result}")
output = result['agent_outcome'].return_values['output']
if isinstance(output, dict):
output = output['text']
output = list(output.values())[0]
return [AIMessage(content=output)]
3 changes: 1 addition & 2 deletions src/backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

[tool.poetry]
name = "bisheng"
version = "0.3.3"
Expand Down Expand Up @@ -89,7 +88,7 @@ matplotlib = "3.8.4"
cchardet = "^2.1.7"
llama-index = "0.9.48"
tenacity = "<8.4.0"
bisheng-ragas = {version = "^1.0.0", source = "dataelem-index"}
bisheng-ragas = { version = "^1.0.0", source = "dataelem-index" }

[tool.poetry.dev-dependencies]
black = "^23.1.0"
Expand Down
2 changes: 1 addition & 1 deletion src/bisheng-langchain/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pydantic==1.10.13
pymupdf==1.23.8
shapely==2.0.2
filetype==1.2.0
langgraph==0.1.5
langgraph==0.0.50
openai==1.14.3
langchain-openai==0.1.0
llama-index==0.9.48
Expand Down

0 comments on commit fc1ae56

Please sign in to comment.