-
Notifications
You must be signed in to change notification settings - Fork 3k
Open
Description
Checklist
- I added a very descriptive title to this issue.
- I included a link to the documentation page I am referring to (if applicable).
Issue with current documentation:
https://docs.langchain.com/oss/javascript/integrations/splitters/code_splitter#markdown
const markdownText = `
# 🦜️🔗 LangChain
⚡ Building applications with LLMs through composability ⚡
## What is LangChain?
# Hopefully this code block isn't split
LangChain is a framework for...
As an open-source project in a rapidly developing field, we are extremely open to contributions.
`;
const mdSplitter = RecursiveCharacterTextSplitter.fromLanguage(
"markdown",
{ chunkSize: 60, chunkOverlap: 0 }
);
const mdDocs = mdSplitter.createDocuments([{ pageContent: markdownText }]);
console.log(mdDocs);
I returned an error when running the code provided in the document
Idea or request for content:
No response
Metadata
Metadata
Assignees
Labels
No labels