Skip to content

Commit 9784daa

Browse files
Merge pull request #611 from pecastro/patch-1
Update retrieval_agents.mdx
2 parents be9a4e7 + 00e6fbc commit 9784daa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

units/en/unit2/smolagents/retrieval_agents.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ This approach combines predefined knowledge with semantic search to provide cont
6969
In this example, we'll create a tool that retrieves party planning ideas from a custom knowledge base. We'll use a BM25 retriever to search the knowledge base and return the top results, and `RecursiveCharacterTextSplitter` to split the documents into smaller chunks for more efficient search.
7070

7171
```python
72-
from langchain.docstore.document import Document
73-
from langchain.text_splitter import RecursiveCharacterTextSplitter
72+
from langchain_community.docstore.document import Document
73+
from langchain_text_splitters import RecursiveCharacterTextSplitter
7474
from smolagents import Tool
7575
from langchain_community.retrievers import BM25Retriever
7676
from smolagents import CodeAgent, InferenceClientModel

0 commit comments

Comments
 (0)