3.0.1 • Published 9 months ago

@orama/plugin-secure-proxy v3.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

Orama Secure Proxy Plugin

Tests

Orama plugin for generating embeddings and performing vector/hybrid search securely on the front-end.

Usage

For the complete usage guide, please refer to the official plugin documentation.

To use the Orama Secure Proxy Plugin, you will need to sign up for a free account at https://cloud.orama.com

import { create, insert, search } from '@orama/orama'
import { pluginSecureProxy} from '@orama/plugin-secure-proxy'

const db = await create({
  schema: {
    title: 'string',
    description: 'string',
    embeddings: 'vector[384]'
  },
  plugins: [
    pluginSecureProxy({
      apiKey: 'xyz',
      embeddings: {
        defaultProperty: 'embeddings',
        model: 'orama/gte-small',
        onInsert: {
          generate: true, // Generate the embeddings at insert-time
          properties: ['title', 'description'], // Properties to generate embeddings from
          verbose: false
        },
      },
      chat: {
        model: 'openai/gpt-4o'
      }
    })
  ]
})

Available embeddings models:

Model nameProviderDimensions
orama/gte-smallOrama384
orama/gte-mediumOrama768
orama/gte-largeOrama1024
openai/text-embedding-ada-002Openai1536
openai/text-embedding-3-smallOpenai1536
openai/text-embedding-3-largeOpenai3072

Available chat models:

Model nameProvider
openai/openai/gpt-4oOpenai
openai/gpt-4o-miniOpenai
openai/gpt-4-turboOpenai
openai/gpt-4Openai
openai/gpt-3.5-turboOpenai

Mode models coming soon!

For the full configuration guide of this plugin, please follow the official plugin documentation.

License

Apache-2.0

3.0.1

9 months ago

3.0.0

9 months ago

3.0.0-rc-4

9 months ago

3.0.0-rc-1

10 months ago

3.0.0-rc-3

9 months ago

3.0.0-rc-2

9 months ago

2.1.1

10 months ago

2.1.0

10 months ago

2.0.24

10 months ago

2.0.19

1 year ago

2.0.22

12 months ago

2.0.23

11 months ago

2.0.20

1 year ago

2.0.21

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago