-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Separate markdown into headings and paragraphs #9173
feat: Separate markdown into headings and paragraphs #9173
Conversation
|
…plit-markdown-per-header-sections
imprv: Vitest environment for markdown-splitter
apps/app/package.json
Outdated
@@ -64,6 +64,7 @@ | |||
"@azure/openai": "^2.0.0-beta.2", | |||
"@azure/storage-blob": "^12.16.0", | |||
"@browser-bunyan/console-formatted-stream": "^1.8.0", | |||
"@dqbd/tiktoken": "^1.0.16", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
現状使っていないように見える
* @param label - The label of the chunk | ||
*/ | ||
function createChunk(chunks: Chunk[], content: string, label: string) { | ||
const trimmedContent = content.trimEnd(); // 末尾の空白と改行を削除 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメントは全て英語で
#153983 [RAG] markdown をヘッダーセクションごと(更に指定文字数以下になるように子セクションごと)に再起的に分割できる
┗ #154085 markdown を parse してヘッダー毎にわける
┗ #154087 テストも ChatGPT or Copilot に出力してもらったものをベースに追加する
備考
this mark down split into
↓