Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

Milvus Vector Store

Here are two sample scripts which work with loading and querying data from a Milvus Vector Store.

Prerequisites

Setup

  1. Set your env variables:
  • MILVUS_ADDRESS: Address of your Milvus Vector Store (like localhost:19530)
  • MILVUS_USERNAME: empty or username for your Milvus Vector Store
  • MILVUS_PASSWORD: empty or password for your Milvus Vector Store
  • OPENAI_API_KEY: Your OpenAI key
  1. cd Into the examples directory
  2. run npm i

Load the data

This sample loads the same dataset of movie reviews as sample dataset. You can install https://github.com/zilliztech/attu to inspect the loaded data.

run npx tsx milvus/load

Use RAG to Query the data

Check out your data in Attu and change the sample query as you see fit.

run npx tsx milvus/query