Retrieves detailed information about a specific assistant’s knowledge configuration using the Rapida API.
Parameters
Configuration for the client connection.
request
GetAssistantKnowledgeRequest
required
The unique identifier of the assistant knowledge configuration to retrieve.
The unique identifier of the assistant associated with the knowledge configuration.
Usage
from rapida import (
ConnectionConfig,
GetAssistantKnowledgeRequest,
get_assistant_knowledge,
)
from pprint import pprint
connection_config = ConnectionConfig.default_connection_config(
ConnectionConfig.with_sdk("{rapida-api-key}")
)
response = get_assistant_knowledge(
client_cfg=connection_config,
request=GetAssistantKnowledgeRequest(
id="{assistant_knowledge_id}", assistantId="{assistant_id}"
),
)
pprint(response)
Response
Numeric status code for the operation.
Indicates whether the operation was successful.
Detailed information about the assistant’s knowledge configuration.
Unique identifier for the assistant knowledge configuration.
Identifier of the associated knowledge base.
Whether the reranker is enabled for knowledge retrieval.
Maximum number of top results to retrieve from the knowledge base.
Minimum similarity score threshold for knowledge retrieval.
Detailed information about the associated knowledge base.
Unique identifier for the knowledge base.
Name of the knowledge base.
Description of the knowledge base.
Visibility setting of the knowledge base.
Language of the knowledge base content.
Identifier of the embedding model provider.
embeddingModelProviderName
Name of the embedding model provider.
knowledgeEmbeddingModelOptions
Array of embedding model configuration options.
Unique identifier for the metadata entry.
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.
Total number of documents in the knowledge base.
Total number of tokens in the knowledge base.
Total number of words in the knowledge base.
Method used for retrieving knowledge from the knowledge base.
Identifier of the reranker model provider.
rerankerModelProviderName
Name of the reranker model provider.
assistantKnowledgeRerankerOptions
Array of reranker configuration options.
Unique identifier for the metadata entry.
Timestamp when the assistant knowledge configuration was created.
Timestamp when the assistant knowledge configuration was last updated.
Current status of the assistant knowledge configuration.
Error information, if applicable.
Human-readable error message.