> ## Documentation Index
> Fetch the complete documentation index at: https://ionet-cca8037f-confidential-compute.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace document metadata

> Modify document metadata, given the document ID

<RequestExample>
  ```python Request Example theme={null}
  from r2r import R2RClient

  client = R2RClient('https://api.intelligence.io.solutions/api/r2r')
  client.set_api_key('<your-io-API-key>')

  response = client.retrieval.completion(
      messages=[
          {"role": "system", "content": "You are a helpful assistant."},
          {"role": "user", "content": "What is the capital of France?"},
          {"role": "assistant", "content": "The capital of France is Paris."},
          {"role": "user", "content": "What about Italy?"}
      ],
      generation_config={
          "model": "hosted_vllm/openai/gpt-oss-120b",
          "temperature": 0.7,
          "max_tokens": 150,
          "stream": False
      }
  )

  print(response)
  ```
</RequestExample>
