Skip to content
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
2 changes: 1 addition & 1 deletion units/en/unit3/agentic-rag/invitees.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ We will use the `BM25Retriever` from the `langchain_community.retrievers` module

```python
from langchain_community.retrievers import BM25Retriever
from langchain.tools import Tool
from langchain_core.tools import Tool

bm25_retriever = BM25Retriever.from_documents(docs)

Expand Down
4 changes: 2 additions & 2 deletions units/en/unit3/agentic-rag/tools.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ weather_info_tool = FunctionTool.from_defaults(get_weather_info)
<hfoption id="langgraph">

```python
from langchain.tools import Tool
from langchain_core.tools import Tool
import random

def get_weather_info(location: str) -> str:
Expand Down Expand Up @@ -256,7 +256,7 @@ The most downloaded model by facebook is facebook/esmfold_v1 with 12,544,550 dow
<hfoption id="langgraph">

```python
from langchain.tools import Tool
from langchain_core.tools import Tool
from huggingface_hub import list_models

def get_hub_stats(author: str) -> str:
Expand Down
2 changes: 1 addition & 1 deletion units/es/unit3/agentic-rag/invitees.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Usaremos el `BM25Retriever` del módulo `langchain_community.retrievers` para cr

```python
from langchain_community.retrievers import BM25Retriever
from langchain.tools import Tool
from langchain_core.tools import Tool

bm25_retriever = BM25Retriever.from_documents(docs)

Expand Down
4 changes: 2 additions & 2 deletions units/es/unit3/agentic-rag/tools.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ weather_info_tool = FunctionTool.from_defaults(get_weather_info)
<hfoption id="langgraph">

```python
from langchain.tools import Tool
from langchain_core.tools import Tool
import random

def get_weather_info(location: str) -> str:
Expand Down Expand Up @@ -256,7 +256,7 @@ The most downloaded model by facebook is facebook/esmfold_v1 with 12,544,550 dow
<hfoption id="langgraph">

```python
from langchain.tools import Tool
from langchain_core.tools import Tool
from huggingface_hub import list_models

def get_hub_stats(author: str) -> str:
Expand Down
2 changes: 1 addition & 1 deletion units/fr/unit3/agentic-rag/invitees.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ Nous utiliserons le `BM25Retriever` du module `langchain_community.retrievers` p

```python
from langchain_community.retrievers import BM25Retriever
from langchain.tools import Tool
from langchain_core.tools import Tool

bm25_retriever = BM25Retriever.from_documents(docs)

Expand Down
4 changes: 2 additions & 2 deletions units/fr/unit3/agentic-rag/tools.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ weather_info_tool = FunctionTool.from_defaults(get_weather_info)
<hfoption id="langgraph">

```python
from langchain.tools import Tool
from langchain_core.tools import Tool
import random

def get_weather_info(location: str) -> str:
Expand Down Expand Up @@ -255,7 +255,7 @@ Le modèle le plus téléchargé par facebook est facebook/esmfold_v1 avec 12,54
<hfoption id="langgraph">

```python
from langchain.tools import Tool
from langchain_core.tools import Tool
from huggingface_hub import list_models

def get_hub_stats(author: str) -> str:
Expand Down
2 changes: 1 addition & 1 deletion units/zh-CN/unit3/agentic-rag/invitees.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ guest_info_tool = FunctionTool.from_defaults(get_guest_info_retriever)

```python
from langchain_community.retrievers import BM25Retriever
from langchain.tools import Tool
from langchain_core.tools import Tool

bm25_retriever = BM25Retriever.from_documents(docs)

Expand Down
4 changes: 2 additions & 2 deletions units/zh-CN/unit3/agentic-rag/tools.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ weather_info_tool = FunctionTool.from_defaults(get_weather_info)
<hfoption id="langgraph">

```python
from langchain.tools import Tool
from langchain_core.tools import Tool
import random

def get_weather_info(location: str) -> str:
Expand Down Expand Up @@ -256,7 +256,7 @@ Facebook 下载次数最多的模型是 facebook/esmfold_v1,下载次数为 12
<hfoption id="langgraph">

```python
from langchain.tools import Tool
from langchain_core.tools import Tool
from huggingface_hub import list_models

def get_hub_stats(author: str) -> str:
Expand Down