Skip to content

Search through outdoor product listings and use RAG to help you plan hikes

Notifications You must be signed in to change notification settings

weaviate-tutorials/nuxt-ecommerce-rag

Repository files navigation

An eCommerce application with Vector Search and RAG built with Weaviate, Nuxt.js, Cohere and Open AI.

This repo should help get you started developing RAG Applications for eCommerce with Weaviate and Nuxt.js.

Weaviate

Installation

  1. Clone the repo with the following command

    git clone https://github.com/weaviate-tutorials/nuxt-ecommerce-rag
  2. Install the necessary project dependencies with the following command

    yarn install
  3. Create a Weaviate instance on Weaviate Cloud Services as described in this guide

  4. Create a .env file and add the following keys

    • your Open AI API key as NUXT_OPENAI_API_KEY (you can get this in your Open AI settings)
    • your Cohere API key as NUXT_COHERE_API_KEY (you can get this in your Cohere settings)
    • your Weaviate API key as NUXT_WEAVIATE_READ_KEY (you can get this in your Weaviate dashboard under sandbox details)
    • your Weaviate Admin API key as NUXT_WEAVIATE_ADMIN_KEY (you can get this in your Weaviate dashboard under sandbox details)
    • your Weaviate host URL as NUXT_WEAVIATE_HOST_URL (you can get this in your Weaviate dashboard under sandbox details)
  5. Import your data and initialize your collections by uncommenting the last three lines in import/simple.ts and then running the following command

    yarn run import-data 
  6. Start your Nuxt.js app with the following command

    yarn dev
  7. Search away!!

📚 Resources

Learn more about Weaviate applications

🤷🏾‍♂️ Troubleshooting