Retrieves a paginated list of all knowledge bases associated with a specific assistant using the Rapida API.
Parameters
Configuration for the client connection.
request
GetAllAssistantKnowledgeRequest
required
The unique identifier of the assistant whose knowledge bases to retrieve.
Pagination configuration for the results.
The page number to retrieve (0-based).
Number of items per page.
Array of search criteria to filter the results.
The field name to filter by.
The logic operator for the criteria (“should” or “must”).
Usage
from rapida import (
ConnectionConfig,
GetAllAssistantKnowledgeRequest,
get_all_assistant_knowledge,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_all_assistant_knowledge(
client_cfg=connection_config,
request=GetAllAssistantKnowledgeRequest(
assistantId="{assistant_id}",
paginate=Paginate(page=0, pageSize=20),
# criterias=[Criteria(key="KEY", value="VALUE", logic="should")],
),
)
pprint(response)
Response
Numeric status code for the operation.
Indicates whether the operation was successful.
Array of assistant knowledge configurations.
Unique identifier for the assistant knowledge mapping.
Identifier of the associated knowledge base.
Whether reranking is enabled for this knowledge base.
Number of top results to retrieve from the knowledge base.
Minimum similarity score threshold for results.
Detailed information about the knowledge base.
Unique identifier for the knowledge base.
Name of the knowledge base.
Description of the knowledge base purpose.
Visibility setting of the knowledge base.
Language setting for the knowledge base.
Identifier of the embedding model provider.
embeddingModelProviderName
Name of the embedding model provider.
knowledgeEmbeddingModelOptions
Array of embedding model configuration options.
Current status of the knowledge base.
Identifier of the knowledge base creator.
User object of the knowledge base creator.
Identifier of the last updater.
User object of the last updater.
Timestamp when the knowledge base was created.
Timestamp when the knowledge base was last updated.
Associated organization identifier.
Associated project identifier.
Organization details associated with the knowledge base.
Tag information associated with the knowledge base.
Number of documents in the knowledge base.
Total token count in the knowledge base.
Total word count in the knowledge base.
Method used for retrieving information from the knowledge base.
Identifier of the reranker model provider.
rerankerModelProviderName
Name of the reranker model provider.
assistantKnowledgeRerankerOptions
Array of reranker configuration options.
Timestamp when the assistant knowledge mapping was created.
Timestamp when the assistant knowledge mapping was last updated.
Current status of the assistant knowledge mapping.
Error information, if applicable.
Human-readable error message.
Pagination information for the results.
Number of items per page.
Total number of pages available.
Total number of items across all pages.