Overview

This page provides an overview of APIs related to View AI Assistant.

View Assistant is a comprehensive solution built into View AI that enables conversational experiences with protected, on-premises data. View Assistant exposes both simple chat APIs (interact directly with a large language model) and retrieval augmented generation (RAG) APIs (interact with a large language model using your data as context), alongside both an easy-to-use built-in conversational AI interface and a standalone deployable conversational AI interface.

JavaScript SDK Setup

Install SDK from npm

npm install view-sdk

Initialize Configuration Sdk

import { ViewAssistantSdk } from "view-sdk";

const assistant = new ViewAssistantSdk(
  "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
from view_sdk import assistant

sdk = view_sdk.configure( access_key="default",base_url="localhost", tenant_guid= "00000000-0000-0000-0000-000000000000")