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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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