# Size of the generated response

**URL:** <https://forum.weaviate.io/t/size-of-the-generated-response/9805>\
**Category:** Support\
**Tags:** python, aws\
**Created:** [January 17, 2025, 7:57pm UTC](https://forum.weaviate.io/t/size-of-the-generated-response/9805 "2025-01-17T19:57:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taigofranca](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/taigofranca/32/2835_2.png) [@taigofranca](https://forum.weaviate.io/u/taigofranca)\
**Post date:** [January 17, 2025, 7:57pm UTC](https://forum.weaviate.io/t/size-of-the-generated-response/9805/1 "2025-01-17T19:57:20Z")

</div>

### Description

I created a collection with the following parameters:

```python
...
self.__client.collections.create(
        self.__collection_name,
        vectorizer_config=[Configure.NamedVectors.text2vec_aws(
             name=self.__collection_name,
             region='us-east-1',
             service='bedrock',
             model='cohere.embed-multilingual-v3'
        )],
        generative_config=Configure.Generative.aws(
             region='us-east-1',
             service='bedrock',
             model='anthropic.claude-3-5-sonnet-20240620-v1:0'
        )
)
...

```

And the RAG is like this:

```python
response = collection.generate.near_text(
              query=prompt,
              limit=3,
              grouped_properties=['description'],
              grouped_task=f'Gere uma descrição longa para um produto na forma de um texto comercial que reforçe suas características e usando o contexto fornecido.\n\n{prompt}'
          )

generated = response.generated
print(generated)

```

The generated string, which is stored in the generated variable, is incomplete. More words were generated, but they were not returned, leaving the generated description meaningless.

I saw that Claude Sonnet 3.5 on Amazon Bedrock has a length parameter, which limits the size of the response.

How can I inform this parameter through Weaviate?

Big hug, everyone.

### Server Setup Information

- Weaviate Server Version: 1.27.0
- Deployment Method: Local
- Multi Node? No
- Client Language and Version: Python v4
- Multitenancy? No

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [January 22, 2025, 2:03pm UTC](https://forum.weaviate.io/t/size-of-the-generated-response/9805/2 "2025-01-22T14:03:20Z")

</div>

Hi!! @taigofranca !!

Awesome question!

I see that the generative for anthropic has [this parameter exposed on client](https://github.com/weaviate/weaviate-python-client/blob/968fe75168a61bb872d947265d769c72c33c5201/weaviate/collections/classes/config.py#L1000), but not for the [generate.aws](https://github.com/weaviate/weaviate-python-client/blob/968fe75168a61bb872d947265d769c72c33c5201/weaviate/collections/classes/config.py#L971).

I have checked with our team, and indeed it is missing.

So we could either add it to `generative.bedrock` or create a new `generative.bedrock_anthropic`

Issue created: [Missing parameters when using anthropic on amazon bedrock · Issue #1520 · weaviate/weaviate-python-client · GitHub](https://github.com/weaviate/weaviate-python-client/issues/1520)

Thanks for pointing it out!
