embedbase
v0.1.0Vector 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.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of collections to return. |
offset | integer | Number of collections to skip before returning results. |
chroma_create_collection
Create a new collection with optional metadata and embedding function.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection to create. |
embedding_function_name | string | Name of the embedding function to use for the collection. |
metadata | object | Metadata to associate with the collection. |
chroma_peek_collection
Return a preview of documents stored in a collection.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection to preview. |
limit | integer | Maximum number of documents to preview. |
chroma_get_collection_info
Get metadata and configuration details for a collection.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection to get information for. |
chroma_get_collection_count
Get the number of records stored in a collection.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection to count records in. |
chroma_modify_collection
Rename a collection or replace its metadata.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection to modify. |
new_metadata | object | New metadata to replace the collection's existing metadata. |
new_name | string | New name for the collection. |
chroma_delete_collection
Delete a collection and all of its records.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection to delete. |
chroma_add_documents
Add documents with optional metadata and ids to a collection.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection to add documents to. |
documents * | array | Document texts to add to the collection. |
ids | array | Ids for the documents, aligned by position with documents; generated when omitted. |
metadatas | array | Metadata objects for each document, aligned by position with documents. |
chroma_query_documents
Query a collection for documents nearest to the given query texts.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection to query. |
query_texts * | array | Query texts to find the nearest documents for. |
include | array | Fields to include in the results, such as documents, metadatas, embeddings, or distances. |
n_results | integer | Maximum number of results to return for each query text. |
where | object | Metadata filter to apply to the query. |
where_document | object | Document-content filter to apply to the query. |
chroma_get_documents
Retrieve documents from a collection by ids or filter.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection to retrieve documents from. |
ids | array | Ids of the documents to retrieve. |
include | array | Fields to include in the results, such as documents, metadatas, or embeddings. |
limit | integer | Maximum number of documents to return. |
offset | integer | Number of documents to skip before returning results. |
where | object | Metadata filter selecting which documents to retrieve. |
chroma_update_documents
Update documents, metadata, or embeddings for existing ids in a collection.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection containing the documents to update. |
ids * | array | Ids of the documents to update. |
documents | array | Replacement document texts, aligned by position with ids. |
embeddings | array | Replacement embedding vectors, aligned by position with ids. |
metadatas | array | Replacement metadata objects, aligned by position with ids. |
chroma_delete_documents
Delete documents from a collection by ids or filter.
| Parameter | Type | Description |
|---|---|---|
collection_name * | string | Name of the collection to delete documents from. |
ids | array | Ids of the documents to delete. |
where | object | Metadata filter selecting which documents to delete. |