mirror of
https://github.com/run-llama/LlamaIndexTS.git
synced 2026-07-22 07:16:21 -04:00
6d4d96f8fe
Co-authored-by: Marcus Schiesser <mail@marcusschiesser.de>
Weaviate Vector Store
Here are two sample scripts which work with loading and querying data from a Weaviate Vector Store.
Prerequisites
- An Weaviate Vector Database
- An OpenAI API Key
Setup
- Set your env variables:
WEAVIATE_CLUSTER_URL: Address of your Weaviate Vector Store (like localhost:8080)WEAVIATE_API_KEY: Your Weaviate API keyOPENAI_API_KEY: Your OpenAI key
cdInto theexamplesdirectory- run
npm i
Load the data
This sample loads the same dataset of movie reviews as sample dataset
run npx tsx weaviate/load
Use RAG to Query the data
run npx tsx weaviate/query