This page provides an overview of configuration-related APIs.
In a default installation, objects are created on your behalf allowing you to get up and running quickly with View. To customize View and configure it to your liking, use the following pages to:
- Define one or more tenants, that is, isolated domains within your deployment (e.g. different departments)
- Define one or more users and their credentials
- Define metadata rules for how metadata is generated and where it is stored
- Define embeddings rules for how embeddings are generated, using which model, and where they are stored
- Define collections within your Lexi data catalog
- Define vector repositories where embeddings and related metadata are stored
- Define graph repositories where your graph representations and metadata are stored
JavaScript SDK Setup
Install SDK from npm
npm install view-sdk
Initialize Configuration Sdk
import { ViewConfigurationSdk } from "view-sdk";
const api = new ViewConfigurationSdk(
"00000000-0000-0000-0000-000000000000", //tenant Id
"default", //access token
"http://localhost:8000/" //endpoint
);
Python setup
Install SDK from pip
pip install view-sdk
Initialize Configuration Sdk
import view_sdk
sdk = view_sdk.configure( access_key="default",base_url="http://localhost:8000/", tenant_guid= "00000000-0000-0000-0000-000000000000")
C# setup
Install SDK from NuGet
Initialize Configuration Sdk
using View.Sdk;
using View.Sdk.Configuration;
public static class Example {
public static async Task Main(string[] args)
{
ViewConfigurationSdk sdk = new ViewConfigurationSdk(Guid.Parse("00000000-0000-0000-0000-000000000000"),"default", "http://view.homedns.org:8000/");
}
}