Home

Awesome

<br /> <p align="center"> <img width="150" alt="embedbasevector" src="https://github.com/different-ai/embedbase/assets/11430621/a04174fa-1c0a-4737-9e83-8cfd74f1c16d"> <h1 align="center">Embedbase</h1> <h3 align="center">All the tools you need to develop AI apps</h3> <p align="center"> <br /> <a href="https://discord.gg/pMNeuGrDky"><img alt="Discord" src="https://img.shields.io/discord/1066022656845025310?color=black&style=for-the-badge"></a> <br /> <div align="center"> <a href="https://app.embedbase.xyz/signup">Try the Hosted Version</a> · <a href="https://github.com/different-ai/embedbase/issues/new?assignees=&labels=enhancement">Request Feature</a> · <a href="https://github.com/different-ai/embedbase/issues/new?assignees=&labels=bug">Report Bug</a> </div> <br /> </p> </p>

Check out the docs for more info.

What is it

Embedbase is a dead-simple API to help you use VectorDBs and LLMs without needing to host them!

Key features

Installation

npm i embedbase-js

import { createClient } from 'embedbase-js'
// initialize client
const embedbase = createClient(
  'https://api.embedbase.xyz',
  '<grab me here https://app.embedbase.xyz/>'
)
 
const question =
  'im looking for a nice pant that is comfortable and i can both use for work and for climbing'
 
// search for information in a pre-defined dataset and returns the most relevant data
const searchResults = await embedbase.dataset('product-ads').search(question)
 
// transform the results into a string so they can be easily used inside a prompt
const stringifiedSearchResults = searchResults
  .map(result => result.data)
  .join('')
 
const answer = await embedbase
  .useModel('openai/gpt-3.5-turbo')
  .generateText(`${stringifiedSearchResults} ${question}`)
 
console.log(answer) // 'I suggest considering harem pants for your needs. Harem pants are known for their ...'

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

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.