Last updated
Last updated
Sign Up: If you haven't already, sign up for a free .
On the free Hacker plan, you get one project and two collections, ideal for testing emno and running small applications. You can easily upgrade when you are ready.
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can generate an API key from your dashboard at any time.
Open the .
Go to 'API Keys'.
Create an API Key and copy it.
To connect with our API, we recommend using one of our official libraries. Currently we support a . Alternatively, you're welcome to interact with the if that's more your style.
Good to know: When using the API directly, remember that each HTTP request should include a 'Token' header with your API key as value. You'll notice this in all our upcoming curl examples.
Set up your client connection to emno with your API key:
In emno, vector embeddings are stored into collections. In each collection, vectors have consistent dimensions and use the same metric to measure similarity.
For instance, you can create a "demoCollection" collection for nearest-neighbor searches, using the Cosine distance metric with vectors of 384 dimensions.
Once your collection is set, insert some sample vectors:
Create a client instance that gets the "demoCollection" collection:
Insert vectors to the collection:
Note: When adding/updating a large volume of data, the standard practice is to divide it into batches, and perform multiple insert/update operations. With emno, you don't have to worry about batching - emno takes care of that for you!
Run a query in your collection to find vectors that are similar. This example searches for the two nearest vectors to a given text. It uses the Cosine distance metric, the same one you chose when you created the collection.
To delete your "demoCollection":
Warning: Be careful when deleting a collection. Once you delete the collection, you will not be able to use it again.
With your emno account set, and a grasp on the essential operations, check out showcasing the diverse applications of emno. Or, inserting your own vector embeddings.
This guide helps you set up your emno vector database in just a few minutes.