Skip to content

weaviate-tutorials/angular-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a Vector Search, RAG and Multimodal Search demo built with Weaviate, Cohere, Open AI and Angular 18.

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

Logo Gif

🐥 Get Started

First, clone the project with the command below

git clone https://github.com/weaviate-tutorials/angular-search

The repository lets you do three things

  1. Run the Angular frontend and Nest.js backend.
  2. Create a Weaviate Sandbox
  3. Import images, audio and videos into your Weaviate database.
  4. Search 🔍

🚀 Run your Angular Application.

Angular CLI

npm install -g @angular/cli@latest

Nest.js

npm i -g @nestjs/cli

🏗️ Create a Weaviate Instance (Using Vertex AI)

Create a Weaviate instance on Weaviate Cloud Services as described in this guide

Get VertexAI token with GCloud CLI

gcloud auth print-access-token

And update GOOGLE_API_KEY in backend/.env file.

🦿 Create a .env file and add the following keys

Add .env file to the backed folder with the following values:

export WEAVIATE_HOST_URL=your-weaviate-cloud-url
export WEAVIATE_ADMIN_KEY=your-weaviate-cloud-apikei
export WEAVIATE_READ_KEY=your-weaviate-cloud-apikei
export COHERE_API_KEY=your-cohere-key
export GOOGLE_API_KEY=your-google-vertex-key

note: you can skip GOOGLE_API_KEY if you are not going to use multimodal search.

🏃🏽‍♂️Run the project

Backend

cd backend

Run in dev mode with livereload.

yarn start:dev

📩 Importing Data

Before you can import data, add media files to their respective media type folder in the public/assets folder.

With your data in the right folder, run the backend and call http://localhost:3000/setup/createWiki to create a collection and then http://localhost:3000/setup/importData to import data.

This may take a minute or two.

Frontend

cd frontend
ng serve -o

aaannd search away!!

📚 Resources

Learn more about Weaviate applications

🤷🏾‍♂️ Troubleshooting

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published