Skip to content

Create a new index

Creating a new index is extremely simple. When creating your first index, you have the option to:

Select a Data Source

Where do you want to import your data from?

Static File Upload a JSON or CSV file from your computer.
Native Integration Install a natively with Shopify, ElasticPath, Strapi or Docusaurus.
Custom Integration Connect your Orama Cloud Index using Remote JSON or REST APIs.
Web Crawler Scrape data from your public website using a Web Crawler.


Tutorial

For this guide, we will use a JSON file. You can follow along using this dataset.

  1. Let’s start. Click on “Import from files”, and complete the next screen as you prefer.

    Choosing the JSON data source on Orama Cloud

    Once you click on “Create index”, Orama will create an empty index for you.

    Empty Orama index
  2. Here you can upload a JSON file, and Orama will show you a preview of the first document found in it. You can use this information to write the searchable properties schema.

    Writing the searchable properties schema

    Remember that you can only perform search and filter through properties that are present in the search schema.

    To make Orama faster, read the Optimizing Orama: Schema Optimization article on our blog.

  3. Now you only need to determine how you want to perform vector/hybrid search on your index. You can use Orama embedding models or OpenAI ones. Refer to Embeddings Generation to learn more about this feature.

    If you’re unsure about which model to use, we recommend using the Orama AI embeddings, as they are free, faster and more optimized than OpenAI’s.

    orama/gte-small is the default embedding model, and we highly recommend using this model for most use cases. If you need more powerful embeddings, you can use the orama/gte-medium or orama/gte-large models, as well as OpenAI’s ones.

    Automatic embeddings generation
  4. Once you selected the properties to generate the embeddings from, click on “Save and deploy” to release your index.

    Deploying Orama
  5. After the deployment process is finished, you’ll be able to see an endpoint and a public API key. You can use these two parameters for performing search using the Orama Client SDK.

    To update your index, simply upload a new JSON file with the same schema (or edit the schema accordingly with your new data) and click on “Save and deploy” again.