sabtharm/ai.devant

1.0.2
Ballerina AI Devant Module

Overview

This module offers APIs to connect with Devant by WSO2, providing easy access to AI services like document chunking and AI-powered data processing. It also enables seamless integration of Devant features with the ballerina/ai module.

Prerequisites

Before using this module in your Ballerina application, ensure you have the following

  • A valid Devant AI service URL
  • An access token to authenticate with the Devant platform

Quickstart

To use the ai.devant module in your Ballerina application, follow these steps:

Step 1: Import the module

Copy
import ballerinax/ai.devant;

Step 2: Initialize the Devant AI Client

Copy
devant:Client devantClient = check new ("https://your-devant-service-url", "your-access-token");

Step 3: Use Devant AI Services

For example, chunk a document:

Copy
ai:Chunk[]|devant:Error chunks = devantClient->chunk("/path/to/document.pdf");

Import

import sabtharm/ai.devant;Copy

Other versions

Metadata

Released date: 9 days ago

Version: 1.0.2

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.12.7

GraalVM compatible: Yes


Pull count

Total: 3

Current verison: 1


Weekly downloads


Source repository


Keywords

AI

Devant

Chunkers


Contributors