@xpressai/vecto-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

DocsBlogDiscordTutorials


Vecto TypeScript Client

Welcome to the Vecto TypeScript Client! This client provides convenient access to the Vecto API.

Installation

npm install @xpressai/vecto-client

For the token, sign up for your access here.

Local Testing

Ensure that you have Node 18+ installed and tsc. Clone this directory then run

export TEST_MANAGEMENT_ACCESS_TOKEN="your token" &&
export TEST_VECTOR_SPACE_ID="your vs id" &&
npm test

Sample Usage

Indexing

const api = new IndexApi(config);

const textDataParams: IndexDataRequest = {
    vectorSpaceId: 'your-vector-space-id',
    modality: 'TEXT',
    attributes: ['attr1', 'attr2'],
    input: [new Blob(['sample'])], 
};

await api.indexData(textDataParams);

Lookup

const api = new LookupApi(config);

const textParams: LookupRequest = {
    vectorSpaceId: 'your-vector-space-id',
    modality: 'TEXT',
    topK: 3,
    query: 'sample', 
};

const results = await api.lookup(textParams);

Documentation

For detailed documentation of the methods and models, refer to our official documentation.

Developers Discord

Have any questions or need support? Feel free to chat with the devs at our Discord!

Support

For issues with the Client, please raise a GitHub issue. For issues related to the API or other inquiries, please contact Vecto support.

Dependents (1)

Package Sidebar

Install

npm i @xpressai/vecto-client

Weekly Downloads

8

Version

0.0.10

License

none

Unpacked Size

294 kB

Total Files

114

Last publish

Collaborators

  • mfa-x-ai
  • dot_treo
  • wmeddie