Skip to main content

Embedding

Note: The embedding API is currently not available in the CodeboltJS.

Planned Embedding API​

The embedding API will allow you to create vector embeddings from text input for use in semantic search, similarity matching, and other AI applications.

// This API is not yet implemented
import codebolt from '@codebolt/codeboltjs';

async function main() {
// Planned API structure (not currently available)
const embedding = await codebolt.llm.embeddings.create({
input: "Your text string goes here",
encoding_format: "float",
});

console.log(embedding);
}

Status​

comming soon....