Skip to content

Commit 10b2400

Browse files
authored
Changing @cloudflare/textsplitters to @langchain/textsplitters correct package name (#20435)
I think the package we meant to reference here is the @langchain/textsplitters. @cloudflare/textsplitters doesn't seem to exist: https://www.npmjs.com/search?q=@cloudflare/textsplitters
1 parent af1d293 commit 10b2400

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/workers-ai/tutorials/build-a-retrieval-augmented-generation-ai.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ For large pieces of text, it is recommended to split the text into smaller chunk
492492
To implement this, we'll add a new NPM package to our project, `@langchain/textsplitters':
493493

494494
```sh
495-
npm install @cloudflare/textsplitters
495+
npm install @langchain/textsplitters
496496
```
497497

498498
The `RecursiveCharacterTextSplitter` class provided by this package will split the text into smaller chunks. It can be customized to your liking, but the default config works in most cases:
@@ -591,4 +591,4 @@ To do more:
591591
- Explore [Examples](/workers/examples/) to experiment with copy and paste Worker code.
592592
- Understand how Workers works in [Reference](/workers/reference/).
593593
- Learn about Workers features and functionality in [Platform](/workers/platform/).
594-
- Set up [Wrangler](/workers/wrangler/install-and-update/) to programmatically create, test, and deploy your Worker projects.
594+
- Set up [Wrangler](/workers/wrangler/install-and-update/) to programmatically create, test, and deploy your Worker projects.

0 commit comments

Comments
 (0)