tooluniverse.tools.embedding_database_add moduleΒΆ
embedding_database_add
Add new documents to an existing embedding database. Generates embeddings for new documents usingβ¦
- tooluniverse.tools.embedding_database_add.embedding_database_add(action, database_name, documents, metadata, *, stream_callback=None, use_cache=False, validate=True)[source]ΒΆ
Add new documents to an existing embedding database. Generates embeddings for new documents usingβ¦
- Parameters:
action (
str
) β Action to add documents to existing databasedatabase_name (
str
) β Name of the existing database to add documents todocuments (
list[Any]
) β List of new document texts to embed and addmetadata (
list[Any]
) β Optional metadata for each new document (same length as documents)stream_callback (
Callable
, optional) β Callback for streaming output
- Return type:
Any