@instadapp/vectorstore
v0.0.1
Published
[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href]
Downloads
1
Keywords
Readme
@instadapp/vectorstore
Package description
Usage
Install package:
# npm
npm install @instadapp/vectorstore
# yarn
yarn add @instadapp/vectorstore
# pnpm
pnpm install @instadapp/vectorstore
Import:
// ESM
import {} from "@instadapp/vectorstore";
// CommonJS
const {} = require("@instadapp/vectorstore");
Usage:
// Client
import { InstadappVectorStoreClient, InstadappVectorStore} from "@instadapp/vectorstore";
const client = new InstadappVectorStoreClient({
indexId: "XXX",
apiKey: "YYY",
})
// LangChain
const vectorstore = new InstadappVectorStore(
client,
new OpenAIEmbeddings(),
)
Development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
License
Made with 💛
Published under MIT License.