embedbase

v0.1.0
io.github.CloudCorpRecords/embedbase Checked 4 days ago Published 1 month ago

Vector collections and document search backed by a Chroma HTTP service.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

chroma_list_collections

List collections in the database with optional pagination.

ParameterTypeDescription
limitintegerMaximum number of collections to return.
offsetintegerNumber of collections to skip before returning results.

chroma_create_collection

Create a new collection with optional metadata and embedding function.

ParameterTypeDescription
collection_name *stringName of the collection to create.
embedding_function_namestringName of the embedding function to use for the collection.
metadataobjectMetadata to associate with the collection.

chroma_peek_collection

Return a preview of documents stored in a collection.

ParameterTypeDescription
collection_name *stringName of the collection to preview.
limitintegerMaximum number of documents to preview.

chroma_get_collection_info

Get metadata and configuration details for a collection.

ParameterTypeDescription
collection_name *stringName of the collection to get information for.

chroma_get_collection_count

Get the number of records stored in a collection.

ParameterTypeDescription
collection_name *stringName of the collection to count records in.

chroma_modify_collection

Rename a collection or replace its metadata.

ParameterTypeDescription
collection_name *stringName of the collection to modify.
new_metadataobjectNew metadata to replace the collection's existing metadata.
new_namestringNew name for the collection.

chroma_delete_collection

Delete a collection and all of its records.

ParameterTypeDescription
collection_name *stringName of the collection to delete.

chroma_add_documents

Add documents with optional metadata and ids to a collection.

ParameterTypeDescription
collection_name *stringName of the collection to add documents to.
documents *arrayDocument texts to add to the collection.
idsarrayIds for the documents, aligned by position with documents; generated when omitted.
metadatasarrayMetadata objects for each document, aligned by position with documents.

chroma_query_documents

Query a collection for documents nearest to the given query texts.

ParameterTypeDescription
collection_name *stringName of the collection to query.
query_texts *arrayQuery texts to find the nearest documents for.
includearrayFields to include in the results, such as documents, metadatas, embeddings, or distances.
n_resultsintegerMaximum number of results to return for each query text.
whereobjectMetadata filter to apply to the query.
where_documentobjectDocument-content filter to apply to the query.

chroma_get_documents

Retrieve documents from a collection by ids or filter.

ParameterTypeDescription
collection_name *stringName of the collection to retrieve documents from.
idsarrayIds of the documents to retrieve.
includearrayFields to include in the results, such as documents, metadatas, or embeddings.
limitintegerMaximum number of documents to return.
offsetintegerNumber of documents to skip before returning results.
whereobjectMetadata filter selecting which documents to retrieve.

chroma_update_documents

Update documents, metadata, or embeddings for existing ids in a collection.

ParameterTypeDescription
collection_name *stringName of the collection containing the documents to update.
ids *arrayIds of the documents to update.
documentsarrayReplacement document texts, aligned by position with ids.
embeddingsarrayReplacement embedding vectors, aligned by position with ids.
metadatasarrayReplacement metadata objects, aligned by position with ids.

chroma_delete_documents

Delete documents from a collection by ids or filter.

ParameterTypeDescription
collection_name *stringName of the collection to delete documents from.
idsarrayIds of the documents to delete.
whereobjectMetadata filter selecting which documents to delete.