NAME

WebService::Chroma - chromadb client

VERSION

Version 0.01

SYNOPSIS

use WebService::Chroma;

my $chroma = WebService::Chroma->new();

my $version = $chroma->version();

my $collection = $chroma->create_collection(
	name => 'testing'
);

$collection->add(
	embeddings => [
		[1.1, 2.3, 3.2],
		[2.1, 3.3, 4.2],
	],
	documents => [
		'a blue scarf, a red hat, a woolly jumper, black gloves',
		'a pink scarf, a blue hat, a woolly jumper, green gloves'
	],
	ids => [
		"1",
		"2"
	]
);

$collection->query(
	query_embeddings => [
		[2.1, 3.3, 4.2]
	],
	n_results => 1
);

Description

Chroma is the AI-native open-source vector database. Chroma makes it easy to build LLM apps by making knowledge, facts, and skills pluggable for LLMs.

https://docs.trychroma.com/getting-started https://docs.trychroma.com/deployment/client-server-mode

chroma run --path /db_path

http://localhost:8000/docs

Methods

version

get_collections

get_collection

create_collection

delete_collection

AUTHOR

LNATION, <email at lnation.org>

BUGS

Please report any bugs or feature requests to bug-webservice-chroma at rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-Chroma. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc WebService::Chroma

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

This software is Copyright (c) 2024 by LNATION.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)