Skip to main content
PUT
/
datasource
/
{datasource_id}
/
rag_config
Python (SDK)
from meibelai import Meibelai
import os


with Meibelai(
    api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""),
) as m_client:

    res = m_client.rag.update_rag_config(datasource_id="<id>", description="stable suckle volleyball yieldingly cleverly shyly", collection_id="<id>", extractor_model={
        "name": "<value>",
        "endpoint": "<value>",
    }, embedding_model={
        "name": "<value>",
        "endpoint": "<value>",
        "dimensions": 477647,
    }, sparse_embedding_model={
        "name": "<value>",
        "endpoint": "<value>",
    }, collect_metadata=False, metadata_options={
        "create_title": True,
        "extract_questions_answers": True,
        "extract_summary": False,
        "has_consumer_content": True,
        "get_bibliographical_information": True,
    })

    # Handle response
    print(res)
{
  "message": "<string>"
}

Authorizations

Meibel-API-Key
string
header
required

Path Parameters

datasource_id
string
required

Body

application/json

UpdateRagConfigRequest

description
string | null
collection_id
string | null
extractor_model
object | null

ExtractorModel

embedding_model
object | null

EmbeddingModel

sparse_embedding_model
object | null

SparseEmbeddingModel

collect_metadata
boolean | null
metadata_options
object | null

MetadataOptions

Response

Successful Response

UpdateRagConfigResponse

message
string
required
I