Skip to content

weaviate-tutorials/next-vector-search

Repository files navigation

Generative Search with Weaviate, Next.js and Open AI

This repo should help get you started developing with Weaviate and React.

Weaviate

Installation

  1. Clone the repo with the following command

    git clone https://github.com/weaviate-tutorials/next-vector-search
    
  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 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 WEAVIATE_ADMIN_KEY (you can get this in your Weaviate dashboard under sandbox details)
    • your Weaviate host URL as WEAVIATE_HOST_URL (you can get this in your Weaviate dashboard under sandbox details)
  5. Import your data and initialize your collections with the following command

    yarn run import
    
  6. Start your Vue.js app with the following command

    yarn dev
    
  7. Search away!!

💫you can tweak the prompt for the generative search by editing this line of code

📚 Resources

Learn more about Weaviate applications

🤷🏾‍♂️ Troubleshooting

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published