Skip to content

A simple utility for transforming .md files to vector embeddings with metadata

Notifications You must be signed in to change notification settings

gkteco/crawlerjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crawlerjs

A super simple crawling embdder for .md files. Point crawlerjs where your .md files are, give crawlerjs a sentence transformer and watch it go!

Usage:

import Crawler from "./crawler.js";
const { pipeline } = await import("@xenova/transformers");

const crawler = new Crawler(
    "data", //directory where .md files are located
    "Xenova/all-MiniLM-L6-v2", //sentence transformer
    2, //sequence length (look up the sequence model's sequence length)
    pipeline); //give it a transformers-js pipeline function
const embeddings = await crawler.crawl();
console.log(embeddings)

About

A simple utility for transforming .md files to vector embeddings with metadata

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published