byfareska/modelflow-chroma-embeddings-store

Chroma embeddings store for modelflow-ai.

dev-master 2024-09-27 12:47 UTC

This package is not auto-updated.

Last update: 2024-12-21 12:21:30 UTC


README

        $dsn = new \Nyholm\Psr7\Uri::__construct('http://chroma:8000/app');
        $chroma = \Codewithkyrian\ChromaDB\ChromaDB::factory()
            ->withHost($dsn->getHost())
            ->withPort($dsn->getPort())
            ->withDatabase(substr($dsn->getPath(), 1))
            ->connect();
        $store = new \Byfareska\Modelflow\ChromaEmbeddingsStore\ChromaEmbeddingsStore($chroma->getOrCreateCollection('test'));