byfareska/modelflow-chroma-embeddings-store

modelflow-ai 的 Chroma 嵌入存储。

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

This package is not auto-updated.

Last update: 2024-09-28 10:55:53 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'));