scrimba
Learn Langchain
Split the text
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

AboutCommentsNotes
Split the text
Expand for more info
index.js
run
preview
console
import { RecursiveCharacterTextSplitter } from 'langchain/text_splitter'

try {
const result = await fetch('scrimba-info.txt')
const text = await result.text()
} catch (err) {
console.log(err)
}
Console
[
Document {pageContent:
"Main Faqs What programming l..."
, metadata:
{loc:
{lines:
{from:
1
, to:
8
}
}
}
}
,
Document {pageContent:
"What is the format of the cou..."
, metadata:
{loc:
{lines:
{from:
10
, to:
14
}
}
}
}
,
Document {pageContent:
"What kind of support is avail..."
, metadata:
{loc:
{lines:
{from:
16
, to:
22
}
}
}
}
,
Document {pageContent:
"What is the cost of the cours..."
, metadata:
{loc:
{lines:
{from:
24
, to:
28
}
}
}
}
,
Document {pageContent:
"What are the technical requir..."
, metadata:
{loc:
{lines:
{from:
30
, to:
31
}
}
}
}
,
Document {pageContent:
"Does the platform offer caree..."
, metadata:
{loc:
{lines:
{from:
33
, to:
37
}
}
}
}
,
Document {pageContent:
"Trial Period Does the platfo..."
, metadata:
{loc:
{lines:
{from:
39
, to:
45
}
}
}
}
,
Document {pageContent:
"Following are helpful resourc..."
, metadata:
{loc:
{lines:
{from:
47
, to:
50
}
}
}
}
,
Document {pageContent:
"Study Groups Your Discord Stu..."
, metadata:
{loc:
{lines:
{from:
52
, to:
53
}
}
}
}
,
Document {pageContent:
"When you first join the group..."
, metadata:
{loc:
{lines:
{from:
54
, to:
54
}
}
}
}
,
Document {pageContent:
"Common study group posts to h..."
, metadata:
{loc:
{lines:
{from:
56
, to:
62
}
}
}
}
,
Document {pageContent:
"Virtual Meetups You'll join w..."
, metadata:
{loc:
{lines:
{from:
64
, to:
65
}
}
}
}
,
Document {pageContent:
"We frequently invite Scrimba ..."
, metadata:
{loc:
{lines:
{from:
66
, to:
66
}
}
}
}
,
Document {pageContent:
"Mondays - 4pm CET / 10am EST ..."
, metadata:
{loc:
{lines:
{from:
68
, to:
71
}
}
}
}
,
Document {pageContent:
"Coding Workshops Each week, B..."
, metadata:
{loc:
{lines:
{from:
73
, to:
74
}
}
}
}
,
Document {pageContent:
"Your #student-sessions Discor..."
, metadata:
{loc:
{lines:
{from:
76
, to:
76
}
}
}
}
,
Document {pageContent:
"Code Reviews When you complet..."
, metadata:
{loc:
{lines:
{from:
78
, to:
80
}
}
}
}
,
Document {pageContent:
"You must submit your Solo Pro..."
, metadata:
{loc:
{lines:
{from:
81
, to:
81
}
}
}
}
,
Document {pageContent:
"Follow-up Reviews You may as..."
, metadata:
{loc:
{lines:
{from:
83
, to:
88
}
}
}
}
,
Document {pageContent:
"You can use the Bootcamp foru..."
, metadata:
{loc:
{lines:
{from:
90
, to:
93
}
}
}
}
,
Document {pageContent:
"Resources Bootcamp FAQs What..."
, metadata:
{loc:
{lines:
{from:
93
, to:
101
}
}
}
}
,
Document {pageContent:
"Can I attend all of the Sunda..."
, metadata:
{loc:
{lines:
{from:
103
, to:
107
}
}
}
}
,
Document {pageContent:
"Are the Bootcamp Monday sessi..."
, metadata:
{loc:
{lines:
{from:
109
, to:
112
}
}
}
}
,
Document {pageContent:
"8/8/22 - Myles Young: Front-e..."
, metadata:
{loc:
{lines:
{from:
114
, to:
122
}
}
}
}
,
Document {pageContent:
"11/14/22 - Tom Chant: Scrimba..."
, metadata:
{loc:
{lines:
{from:
122
, to:
131
}
}
}
}
,
Document {pageContent:
"The Frontend Developer Career..."
, metadata:
{loc:
{lines:
{from:
133
, to:
138
}
}
}
}
,
Document {pageContent:
"Module 1 - 10 lessons - 25 mi..."
, metadata:
{loc:
{lines:
{from:
140
, to:
149
}
}
}
}
,
Document {pageContent:
"Solo Project: Hometown Homepa..."
, metadata:
{loc:
{lines:
{from:
149
, to:
155
}
}
}
}
,
Document {pageContent:
"Module 4 – 64 lessons - 3 hou..."
, metadata:
{loc:
{lines:
{from:
157
, to:
164
}
}
}
}
,
Document {pageContent:
"Projects: The World's Most An..."
, metadata:
{loc:
{lines:
{from:
166
, to:
175
}
}
}
}
, ...]
,
/index.html
-1:57