Skip to main content

Open-source API & SDK to integrate your data and easily hook them up to LLMs.

Project description


embedbasevector

Embedbase

Seamless data integration for LLMs


Discord PyPI
Open In Colab

Open-source API & SDK to integrate your data and easily hook them up to LLMs

Used by AVA and serving 100k request a day


Check out the docs for more info.

What is it

Embedbase is a dead-simple API to help you use VectorDBs and Embeddings Models without needing to host them! You can use embedbase to customize LLM (like ChatGPT!) and automatically feed them the right information.

Installation

npm i embedbase-js

// this examples shows how you can use embedbase to automatically add context in a ChatGPT prompt
import { createClient } from 'embedbase-js'

const question = 'What can I do with Embedbase API?'

const embedbase = createClient(
  'https://api.embedbase.xyz',
  'api-key')

const context = await embedbase
.dataset('my-documentation')
.createContext(question);

console.log(context)
/* [
  "Embedbase API allows to store unstructured data...",
  "Embedbase API has 3 main functions a) provides a plug and play solution to store embeddings b) makes it easy to connect to get the right data into llms c)..",
  "Embedabase API is self-hostable...",
] */


const prompt =
`Based on the following context:\n${context.join()}\nAnswer the user's question: ${question}`

// for await allows you to stream answers
for await (const res of embedbase.generate(prompt)) {
    console.log(res)
    // You, can, use, ...
}
// answer:
// You can use the Embedbase API to store unstructured data and then use the data to connect it to LLMs

Table of Contents

What are people building

The fastest way to get started with Embedbase is signing up for free to Embedbase Cloud.

Dashboard Screenshot

Supported Integrations

Connections

  • Any data with the sdk or api
  • PDF
  • Github

Vector DBs

  • Supabase
  • Postgres
  • Qdrant
  • Weaviate
  • Redis

Embedding Models

  • OpenAI Embeddings
  • sentence-transformers
  • T5

Docs and support

Check out our tutorials for step-by-step guides, how-to's, and best practices, our documentation is powered by GPT-4, so you can ask question directly.

Ask a question in our Discord community to get support.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Self-hosting

Note: this render configuration works well for experimentation.

Deploy to Render

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

embedbase-1.2.8.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

embedbase-1.2.8-py3-none-any.whl (27.7 kB view details)

Uploaded Python 3

File details

Details for the file embedbase-1.2.8.tar.gz.

File metadata

  • Download URL: embedbase-1.2.8.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for embedbase-1.2.8.tar.gz
Algorithm Hash digest
SHA256 4bbccbd298d09e0d16c2ec2b1309be690b79053f085d28460e807c6e96f14f03
MD5 f61fb3619b1f535f13cd79e93308257d
BLAKE2b-256 1caf4969e51b304385798f1efc846ec4cc6f23bcda403561c2da60583d68133c

See more details on using hashes here.

File details

Details for the file embedbase-1.2.8-py3-none-any.whl.

File metadata

  • Download URL: embedbase-1.2.8-py3-none-any.whl
  • Upload date:
  • Size: 27.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for embedbase-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 4bc1310795ab06fb575e48eec2092edc78313746a0f138768010511cd97f301f
MD5 75c3dfc3bee0b0955ad7bb097e817a62
BLAKE2b-256 b862f7336abcaf52aa6df1144b5334e00057304905a4ec0f12ed29da90ea9470

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page