Skip to content

Commit 5a32b8c

Browse files
update langchain agent with qwen2.5 for better accuracy (#2542)
![image](https://github.com/user-attachments/assets/b656adab-a448-4784-a6df-a068e0cb45bb) --------- Co-authored-by: Ekaterina Aidova <[email protected]>
1 parent 73d50d3 commit 5a32b8c

File tree

6 files changed

+188
-140
lines changed

6 files changed

+188
-140
lines changed

.ci/ignore_treon_docker.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,5 @@ notebooks/mllama-3.2/mllama-3.2.ipynb
8080
notebooks/sam2-image-segmentation/segment-anything-2-image.ipynb
8181
notebooks/pixtral/pixtral.ipynb
8282
notebooks/llm-agent-react/llm-agent-react.ipynb
83-
notebooks/multilora-image-generation/multilora-image-generation.ipynb
83+
notebooks/multilora-image-generation/multilora-image-generation.ipynb
84+
notebooks/llm-agent-react/llm-agent-react-langchain.ipynb

.ci/skipped_notebooks.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -555,4 +555,11 @@
555555
- notebook: notebooks/mobileclip-video-search/mobileclip-video-search.ipynb
556556
skips:
557557
- os:
558-
- macos-12
558+
- macos-12
559+
- notebook: notebooks/llm-agent-react/llm-agent-react-langchain.ipynb
560+
skips:
561+
- os:
562+
- macos-12
563+
- ubuntu-20.04
564+
- ubuntu-22.04
565+
- windows-2019

notebooks/llm-agent-react/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LLM are limited to the knowledge on which they have been trained and the additio
44

55
The core idea of agents is to use a language model to choose a sequence of actions to take. In agents, a language model is used as a reasoning engine to determine which actions to take and in which order. Agents can be seen as applications powered by LLMs and integrated with a set of tools like search engines, databases, websites, and so on. Within an agent, the LLM is the reasoning engine that, based on the user input, is able to plan and execute a set of actions that are needed to fulfill the request.
66

7-
![agent ui](https://github.com/openvinotoolkit/openvino_notebooks/assets/91237924/2abb2389-e612-4599-82c6-64cdac259120)
7+
![image](https://github.com/user-attachments/assets/b656adab-a448-4784-a6df-a068e0cb45bb)
88

99
This notebook explores how to create an ReAct Agent step by step using OpenVINO. [ReAct](https://arxiv.org/abs/2210.03629) is an approach to combine reasoning (e.g. chain-of-thought prompting) and acting. ReAct overcomes issues of hallucination and error propagation prevalent in chain-of-thought reasoning by interacting with a simple Wikipedia API, and generates human-like task-solving trajectories that are more interpretable than baselines without reasoning traces.
1010

notebooks/llm-agent-react/gradio_helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def make_demo(run_fn: Callable, stop_fn: Callable):
3131
css=".disclaimer {font-variant-caps: all-small-caps;}",
3232
) as demo:
3333
gr.Markdown(f"""<h1><center>AI Agent with OpenVINO and LangChain</center></h1>""")
34-
chatbot = gr.Chatbot(height=500)
34+
chatbot = gr.Chatbot(height=800)
3535
with gr.Row():
3636
with gr.Column():
3737
msg = gr.Textbox(

notebooks/llm-agent-react/llm-agent-rag-llamaindex.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
},
204204
{
205205
"cell_type": "code",
206-
"execution_count": 49,
206+
"execution_count": null,
207207
"id": "86fdc4ba-74c4-4869-898e-131f47827e8f",
208208
"metadata": {
209209
"test_replace": {}

0 commit comments

Comments
 (0)