CollectionName | Description |
---|---|
client | Type: Any | None Default: None |
collection_name | Type: str Default: ‘ag2-docs’ |
embedding_function | Type: Callable[…, Any] | None Default: None |
metadata | Type: Any | None Default: None |
get_or_create | Type: Any | None Default: None |
Name | Description |
---|---|
ids | A list of document IDs. Type: list[str | int] |
documents | A list of documents. Type: list[Document] | None |
embeddings | A list of document embeddings. Optional Type: list[typing.Any] | None Default: None |
metadatas | A list of document metadatas. Optional Type: list[typing.Any] | None Default: None |
Type | Description |
---|---|
None | None |
Name | Description |
---|---|
array_string | Type: str |
Type | Description |
---|---|
list[float] | - list: A list of floats parsed from the input string. If the input is not a string, it returns the input itself. |
Name | Description |
---|---|
arr1 | Type: list[float] |
arr2 | Type: list[float] |
Type | Description |
---|---|
float | - float: The cosine distance between arr1 and arr2. |
Type | Description |
---|---|
int | int: The total number of documents. |
Name | Description |
---|---|
collection_name | The name of the new collection. Type: str | None Default: None |
dimension | The dimension size of the sentence embedding model Type: int | str | None Default: None |
Type | Description |
---|---|
None | None |
Name | Description |
---|---|
ids | A list of document IDs to delete. Type: list[str | int] |
collection_name | The name of the collection to delete. Type: str | None Default: None |
Type | Description |
---|---|
None | None |
Name | Description |
---|---|
collection_name | The name of the collection to delete. Type: str | None Default: None |
Type | Description |
---|---|
None | None |
Name | Description |
---|---|
arr1 | Type: list[float] |
arr2 | Type: list[float] |
Type | Description |
---|---|
float | - float: The Euclidean distance between arr1 and arr2. |
Name | Description |
---|---|
ids | A list of document IDs. Type: str | None Default: None |
include | The fields to include. Type: str | None Default: None |
where | Additional filtering criteria. Type: str | None Default: None |
limit | The maximum number of documents to retrieve. Type: int | str | None Default: None |
offset | The offset for pagination. Type: int | str | None Default: None |
Type | Description |
---|---|
list[Document] | List: The retrieved documents. |
Name | Description |
---|---|
arr1 | Type: list[float] |
arr2 | Type: list[float] |
Type | Description |
---|---|
float | - float: The Euclidean distance between arr1 and arr2. |
Name | Description |
---|---|
metadata | The new metadata. |
collection_name | The name of the collection. Type: str | None Default: None |
Type | Description |
---|---|
None | None |
Name | Description |
---|---|
query_texts | A list of query texts. Type: list[str] |
collection_name | The name of the collection. Type: str | None Default: None |
n_results | The maximum number of results to return. Type: int | None Default: 10 |
distance_type | Distance search type - euclidean or cosine Type: str | None Default: ‘euclidean’ |
distance_threshold | Distance threshold to limit searches Type: float | None Default: -1 |
include_embedding | Include embedding values in QueryResults Type: bool | None Default: False |
Type | Description |
---|---|
list[list[tuple[Document, float]]] | QueryResults: The query results. |
Name | Description |
---|---|
collection_name |
Name | Description |
---|---|
table_name | The name of the table to check. Type: str |
Type | Description |
---|---|
bool | bool: True if the table exists, False otherwise. |
Name | Description |
---|---|
ids | A list of document IDs. Type: list[str] |
embeddings | A list of document embeddings. Type: list[typing.Any] |
metadatas | A list of document metadatas. Type: list[typing.Any] |
documents | A list of documents. Type: list[Document] |
Type | Description |
---|---|
None | None |
Name | Description |
---|---|
ids | A list of document IDs. Type: list[str | int] |
documents | A list of documents. Type: list[Document] |
embeddings | A list of document embeddings. Type: list[typing.Any] | None Default: None |
metadatas | A list of document metadatas. Type: list[typing.Any] | None Default: None |
Type | Description |
---|---|
None | None |