@builderbot-plugins/orama
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.0 • Public • Published

Orama plugin

Is an Open source tool for Vector Database using for RAG and Retrieval Genration

INIT BD

const store = new Store({
    schema: {
        'name': "string",
        'lastname': "string",
        'age': "number"
    },
    recreate: true
})

await store.init([
    {
        age: 25,
        lastname: 'sola',
        name: 'juan'
    }
])

SEARCH

const hits = await store.search('juan', 1)
console.log(hits)

INSERT MORE DATA

/* stuff code */

const store = new Store({
    schema: {
        'name': "string",
        'lastname': "string",
        'age': "number"
    }
})

await store.init()

await store.upsert([{
    'name': "jose",
    'lastname': "foo",
    'age': 23
}])

AUTHOR: Elimleth

/@builderbot-plugins/orama/

    Package Sidebar

    Install

    npm i @builderbot-plugins/orama

    Weekly Downloads

    3

    Version

    1.0.0-alpha.0

    License

    ISC

    Unpacked Size

    9 kB

    Total Files

    7

    Last publish

    Collaborators

    • elimeleth
    • leifermendez