Skip to content

Commit cf447d6

Browse files
authored
Changing @cloudflare/textsplitters to @langchain/textsplitters correct package name
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 e0daff9 commit cf447d6

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
@@ -487,7 +487,7 @@ For large pieces of text, it is recommended to split the text into smaller chunk
487487
To implement this, we'll add a new NPM package to our project, `@langchain/textsplitters':
488488

489489
```sh
490-
npm install @cloudflare/textsplitters
490+
npm install @langchain/textsplitters
491491
```
492492

493493
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:
@@ -586,4 +586,4 @@ To do more:
586586
- Explore [Examples](/workers/examples/) to experiment with copy and paste Worker code.
587587
- Understand how Workers works in [Reference](/workers/reference/).
588588
- Learn about Workers features and functionality in [Platform](/workers/platform/).
589-
- Set up [Wrangler](/workers/wrangler/install-and-update/) to programmatically create, test, and deploy your Worker projects.
589+
- Set up [Wrangler](/workers/wrangler/install-and-update/) to programmatically create, test, and deploy your Worker projects.

0 commit comments

Comments
 (0)