byfareska / modelflow-chroma-embeddings-store
Chroma embeddings store for modelflow-ai.
dev-master
2024-09-27 12:47 UTC
Requires
- php: ^8.2
- codewithkyrian/chromadb-php: *
- modelflow-ai/embeddings: *
This package is not auto-updated.
Last update: 2024-11-23 11:56:21 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'));