rosgpt4all.chroma_embedder

Classes

GPT4AllEmbeddingFunction

Basic Embed4All chromadb.EmbeddingFunction

ChromaEmbedder

Chroma JSON embedding interface.

Module Contents

class rosgpt4all.chroma_embedder.GPT4AllEmbeddingFunction

Bases: chromadb.EmbeddingFunction

Basic Embed4All chromadb.EmbeddingFunction

__call__(input: chromadb.Documents) chromadb.Embeddings
class rosgpt4all.chroma_embedder.ChromaEmbedder(model: str = None, **kwargs: Any)

Bases: json_embedder.JsonEmbedder

Chroma JSON embedding interface. The __call__ function expects a string with a JSON dict containing the following attributes:

collection: to be used collection name documents: list with document strings metadatas: list of metadata dictionaries ids: list of id strings

ef
__call__(j: str) None